dwm themes

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php
$colors = array();
$colors['standart'] = array(
'borderpx' => 1,
'normbordercolor' => "#cccccc",
'normbgcolor' => "#cccccc",
'normfgcolor' => "#000000",
'selbordercolor' => "#ff0000",
'selbgcolor' => "#0066ff",
'selfgcolor' => "#ffffff",
);
$colors['darkgrey'] = array(
'borderpx' => 1,
'normbordercolor' => "#dddddd",
'normbgcolor' => "#eeeeee",
'normfgcolor' => "#222222",
'selbordercolor' => "#333333",
'selbgcolor' => "#333333",
'selfgcolor' => "#ffffff",
);
$colors['green'] = array(
'borderpx' => 3,
'normbordercolor' => "#2F312E",
'normbgcolor' => "#4FA51F",
'normfgcolor' => "#222222",
'selbordercolor' => "#CEE100",
'selbgcolor' => "#00701D",
'selfgcolor' => "#ffffff",
);
$colors['Polachok'] = array(
'borderpx' => 1,
'normbordercolor' => "#555753",
'normbgcolor' => "#2e3436",
'normfgcolor' => "#d3d7cf",
'selbordercolor' => "#676365",
'selbgcolor' => "#3e4446",
'selfgcolor' => "#d3d7cf",
);
$colors['fwm'] = array(
'borderpx' => 4,
'normbordercolor' => "#9eeeee",
'normbgcolor' => "#2e3436",
'normfgcolor' => "#d3d7cf",
'selbordercolor' => "#55aaaa",
'selbgcolor' => "#3e4446",
'selfgcolor' => "#d3d7cf",
);
$tags = array(
'main',
'web',
'music',
'mail',
'im',
'dev',
'misc'
);
?>
<html>
<head>
<title>dwm themes</title>
</head>
<body>
<style>
body * {
font-family:terminus; monospace;
font-size:14px;
}
table.dwm tr td {
padding: 0;
padding-left: 5px;
padding-right: 5px;
}
</style>
<script>
function show(id) {
var el = document.getElementById(id);
if (el.style.display == 'none')
el.style.display = 'block';
else
el.style.display = 'none';
}
</script>
<?php foreach($colors as $name => $color): ?>
<h3><?php echo ucfirst($name) ?></h3>
<div onclick="show('<?php echo $name ?>')">
<table class="dwm" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<?php foreach($tags as $tag):
if ($tag == 'dev') {
$bgcolor = $color['selbgcolor'];
$fgcolor = $color['selfgcolor'];
} else {
$bgcolor = $color['normbgcolor'];
$fgcolor = $color['normfgcolor'];
}
?>
<td style="background-color:<?php echo $bgcolor ?>; color:<?php echo $fgcolor?>;"><?php echo $tag ?></td>
<?php endforeach;?>
<td style="background-color:<?php echo $color['normbgcolor']?>; color:<?php echo $color['normfgcolor']?>;">TTT</td>
<td style="background-color:<?php echo $color['selbgcolor']?>; color:<?php echo $color['selfgcolor']?>;" width="100%">foo.php - GVIM</td>
<td nowrap style="background-color:<?php echo $color['normbgcolor']?>; color:<?php echo $color['normfgcolor']?>;">MPD: Madonna - Secret | 23/11/2007 23:18</td>
</tr>
</table>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><pre style="background-color: black; color: white; border: <?php echo $color['borderpx']?>px solid <?php echo $color['selbordercolor']?>;">
spec@baza /usr % ls
bin games include lib local man sbin share src X11R6
spec@baza /usr %
</pre>
</td>
<td><pre style="background-color: black; color: white; border: <?php echo $color['borderpx']?>px solid <?php echo $color['normbordercolor']?>;">
spec@baza /usr % ls
bin games include lib local man sbin share src X11R6
spec@baza /usr %
</pre>
</td>
</tr>
</table>
<br />
<a href="#" onclick="show('<?php echo $name ?>')">View source code for pasting into config.h</a>
<br />
<pre style="display:none;" readonly id="<?php echo $name ?>">
#define BORDERPX <?php echo $color['borderpx']?>
#define NORMBORDERCOLOR "<?php echo $color['normbordercolor']?>"
#define NORMBGCOLOR "<?php echo $color['normbgcolor']?>"
#define NORMFGCOLOR "<?php echo $color['normfgcolor']?>"
#define SELBORDERCOLOR "<?php echo $color['selbordercolor']?>"
#define SELBGCOLOR "<?php echo $color['selbgcolor']?>"
#define SELFGCOLOR "<?php echo $color['selfgcolor']?>"
</pre>
<br />
<?php endforeach; ?>
</body>
</html>