-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
210 lines (183 loc) · 10.6 KB
/
index.html
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html lang="en">
<head>
<title>Windows Classic Theme Designer</title>
<meta charset="utf-8" />
<meta name="author" content="tPenguinLTG" />
<!-- Main page styles -->
<link rel="stylesheet" href="./styles/main.css" />
<!-- Windows Classic skeleton -->
<link rel="stylesheet" href="./styles/winclassic.css" />
<!-- Windows Classic theme styles -->
<link rel="stylesheet" href="./styles/themes/theme-template.css" id="theme-template" />
<link rel="stylesheet" href="./styles/themes/windows-standard.css" id="theme-colorscheme" />
<!-- Preview window dimensions -->
<link rel="stylesheet" href="./styles/preview.css" />
<script src="./scripts/normalize-css-color.js"></script>
<script src="./scripts/color-conversion-algorithms.js"></script>
<script src="./scripts/theme.js"></script>
<script src="./scripts/winclassic.js"></script>
<script src="./scripts/replace-svg.js"></script>
<script>
var winclassic;
window.onload = function() {
winclassic = new WinClassicTheme();
};
</script>
</head>
<body>
<header>
<h1>Windows Classic Theme Designer</h1>
</header>
<main>
<div id="customizer">
<!-- Preview area -->
<div id="preview" class="desktop">
<!-- Inactive window -->
<div id="window-inactive" class="window inactive">
<div class="titlebar">
<span class="titlebar-title">Inactive Window</span>
<div class="titlebar-wincontrols">
<ul class="buttons-wrapper">
<li class="button minimize"><img src="./images/minimize.svg" alt="_" width="12" height="10" class="button-content" /></li><li class="button maximize"><img src="./images/maximize.svg" alt="+" width="12" height="10" class="button-content" /></li><li class="spacer"></li><li class="button close"><img src="./images/close.svg" alt="x" width="12" height="10" class="button-content" /></li>
</ul>
</div>
</div>
</div>
<!-- Active window -->
<div id="window-active" class="window active">
<!-- Titlebar -->
<div class="titlebar">
<span class="titlebar-title">Active Window</span>
<div class="titlebar-wincontrols">
<ul class="buttons-wrapper">
<li class="button minimize"><img src="./images/minimize.svg" alt="_" width="12" height="10" class="button-content" /></li><li class="button maximize"><img src="./images/maximize.svg" alt="+" width="12" height="10" class="button-content" /></li><li class="spacer"></li><li class="button close"><img src="./images/close.svg" alt="x" width="12" height="10" class="button-content" /></li>
</ul>
</div>
</div>
<div class="window-content">
<!-- Menu bar -->
<ul class="menubar">
<li>Normal</li>
<li class="disabled">Disabled</li>
<li class="selected">Selected</li>
</ul>
<!-- Content -->
<div class="window-area">
<div class="scroll-pane" id="active-scroll-pane">
<div class="scroll-pane-wrapper">
<div class="text-pane scroll-pane-content" id="active-textarea">
<p style="font-weight: bold;">Window Text</p>
</div>
<!-- Scroll bar -->
<div class="scrollbar verti-scroll"><div class="scrollbar-flex"><div class="button scroll-up"><img src="images/up.svg" alt="↑" class="button-content" /></div><div class="scroll-track"></div><div class="button scroll-down"><img src="images/down.svg" alt="↓" class="button-content" /></div></div></div>
<div class="scrollbar horiz-scroll hidden"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Dialog -->
<div id="window-dialog" class="window modal active">
<!-- Titlebar -->
<div class="titlebar">
<span class="titlebar-title">Message Box</span>
<div class="titlebar-wincontrols">
<ul class="buttons-wrapper">
<li class="button close"><img src="./images/close.svg" alt="x" width="12" height="10" class="button-content" /></li>
</ul>
</div>
</div>
<!-- Message -->
<div class="window-content">
<div class="modal-content">
Message Text
</div>
<div class="modal-controls">
<ul class="buttons-wrapper">
<li class="button ok"><span class="button-content">OK</span></li>
</ul>
</div>
</div>
</div>
</div>
<div id="controls">
<div id="meta-controls">
<label><input type="checkbox" name="link-elements" id="link-elements" checked="checked" /> Link elements</label>
<label><input type="checkbox" name="use-gradients" id="use-gradients" checked="checked" /> Title bar gradients</label>
</div>
<fieldset>
<legend>Button</legend>
<label><input type="color" name="ButtonAlternateFace" id="ButtonAlternateFace" class="color-item" data-item="ButtonAlternateFace"/> ButtonAlternateFace</label>
<label><input type="color" name="ButtonDkShadow" id="ButtonDkShadow" class="color-item" data-item="ButtonDkShadow"/> ButtonDkShadow</label>
<label><input type="color" name="ButtonFace" id="ButtonFace" class="color-item" data-item="ButtonFace"/> ButtonFace</label>
<label><input type="color" name="ButtonHilight" id="ButtonHilight" class="color-item" data-item="ButtonHilight"/> ButtonHilight</label>
<label><input type="color" name="ButtonLight" id="ButtonLight" class="color-item" data-item="ButtonLight"/> ButtonLight</label>
<label><input type="color" name="ButtonShadow" id="ButtonShadow" class="color-item" data-item="ButtonShadow"/> ButtonShadow</label>
<label><input type="color" name="ButtonText" id="ButtonText" class="color-item" data-item="ButtonText"/> ButtonText</label>
</fieldset>
<fieldset>
<legend>Window</legend>
<label><input type="color" name="ActiveBorder" id="ActiveBorder" class="color-item" data-item="ActiveBorder"/> ActiveBorder</label>
<label><input type="color" name="AppWorkspace" id="AppWorkspace" class="color-item" data-item="AppWorkspace"/> AppWorkspace</label>
<label><input type="color" name="Background" id="Background" class="color-item" data-item="Background"/> Background</label>
<label><input type="color" name="InactiveBorder" id="InactiveBorder" class="color-item" data-item="InactiveBorder"/> InactiveBorder</label>
<label><input type="color" name="Scrollbar" id="Scrollbar" class="color-item" data-item="Scrollbar"/> Scrollbar</label>
<label><input type="color" name="Window" id="Window" class="color-item" data-item="Window"/> Window</label>
<label><input type="color" name="WindowFrame" id="WindowFrame" class="color-item" data-item="WindowFrame"/> WindowFrame</label>
<label><input type="color" name="WindowText" id="WindowText" class="color-item" data-item="WindowText"/> WindowText</label>
</fieldset>
<fieldset>
<legend>Title Bar</legend>
<label><input type="color" name="ActiveTitle" id="ActiveTitle" class="color-item" data-item="ActiveTitle"/> ActiveTitle</label>
<label><input type="color" name="GradientActiveTitle" id="GradientActiveTitle" class="color-item" data-item="GradientActiveTitle"/> GradientActiveTitle</label>
<label><input type="color" name="GradientInactiveTitle" id="GradientInactiveTitle" class="color-item" data-item="GradientInactiveTitle"/> GradientInactiveTitle</label>
<label><input type="color" name="InactiveTitle" id="InactiveTitle" class="color-item" data-item="InactiveTitle"/> InactiveTitle</label>
<label><input type="color" name="InactiveTitleText" id="InactiveTitleText" class="color-item" data-item="InactiveTitleText"/> InactiveTitleText</label>
<label><input type="color" name="TitleText" id="TitleText" class="color-item" data-item="TitleText"/> TitleText</label>
</fieldset>
<fieldset>
<legend>Menu</legend>
<label><input type="color" name="Menu" id="Menu" class="color-item" data-item="Menu"/> Menu</label>
<label><input type="color" name="MenuBar" id="MenuBar" class="color-item" data-item="MenuBar"/> MenuBar</label>
<label><input type="color" name="MenuHilight" id="MenuHilight" class="color-item" data-item="MenuHilight"/> MenuHilight</label>
<label><input type="color" name="MenuText" id="MenuText" class="color-item" data-item="MenuText"/> MenuText</label>
</fieldset>
<fieldset>
<legend>Text</legend>
<label><input type="color" name="GrayText" id="GrayText" class="color-item" data-item="GrayText"/> GrayText</label>
<label><input type="color" name="Hilight" id="Hilight" class="color-item" data-item="Hilight"/> Hilight</label>
<label><input type="color" name="HilightText" id="HilightText" class="color-item" data-item="HilightText"/> HilightText</label>
<label><input type="color" name="HotTrackingColor" id="HotTrackingColor" class="color-item" data-item="HotTrackingColor"/> HotTrackingColor</label>
</fieldset>
<fieldset>
<legend>Tooltip</legend>
<label><input type="color" name="InfoText" id="InfoText" class="color-item" data-item="InfoText"/> InfoText</label>
<label><input type="color" name="InfoWindow" id="InfoWindow" class="color-item" data-item="InfoWindow"/> InfoWindow</label>
</fieldset>
</div>
</div>
<hr />
<div id="ini-code">
<h2><code>[Control Panel\Colors]</code></h2>
<fieldset>
<legend>Export</legend>
<textarea id="export" rows="31" cols="40" readonly="readonly"></textarea>
</fieldset>
<fieldset>
<legend>Import</legend>
<textarea id="import" rows="31" cols="40"></textarea>
<button id="import-action">Import</button>
</fieldset>
</div>
</main>
<footer>
<hr />
<p>Created by <a href="http://tpenguinltg.wordpress.com/">tPenguinLTG</a>. View the source on <a href="https://github.com/tpenguinltg/winclassic">GitHub</a>.</p>
</footer>
<script> makeSvgInline(); </script>
</body>
</html>