8453
|
1 |
; View defaultStyle:#darkVader
|
|
2 |
;
|
|
3 |
; $Header$
|
|
4 |
|
8458
|
5 |
ToolbarIconLibrary (Smalltalk at:#ToolbarIconLibrary put:(Smalltalk at:#MacOSX2DarkToolbarIconLibrary))
|
8453
|
6 |
|
|
7 |
; viewGrey ?(Color rgbValue:16r252525)
|
|
8 |
viewGrey ?(Color rgbValue:16r353535)
|
|
9 |
viewLightGrey Color white
|
|
10 |
|
|
11 |
#include 'Adwaita.style'
|
|
12 |
|
8458
|
13 |
ToolbarIconLibrary (Smalltalk at:#ToolbarIconLibrary put:(Smalltalk at:#MacOSX2DarkToolbarIconLibrary))
|
8453
|
14 |
|
8458
|
15 |
name #darkVader
|
8453
|
16 |
|
|
17 |
;
|
|
18 |
; unfinished
|
|
19 |
;
|
|
20 |
|
|
21 |
"/ viewGrey (Color rgbValue:16r252525)
|
|
22 |
viewGrey (Color rgbValue:16r353535)
|
|
23 |
viewLightGrey Color white
|
|
24 |
; lightColor Color white
|
|
25 |
lightColor =viewGrey
|
|
26 |
; halfShadowColor (Color grey:80)
|
|
27 |
halfShadowColor =viewGrey
|
|
28 |
halfLightColor =viewGrey
|
|
29 |
; shadowColor (Color grey:60)
|
|
30 |
shadowColor =viewGrey
|
|
31 |
|
|
32 |
selectionBlue (Color red:22 green:46 blue:84)
|
|
33 |
selectionGrey (Color grey:84)
|
|
34 |
|
|
35 |
comment 'Dark Theme (unfinished)'
|
|
36 |
previewFileName 'viewStyleSample_darkVader.png'
|
|
37 |
|
|
38 |
foregroundColor Color white
|
|
39 |
backgroundColor =viewGrey
|
|
40 |
selection.foregroundColor =foregroundColor
|
|
41 |
selection.backgroundColor =backgroundColor
|
|
42 |
|
8458
|
43 |
textForegroundColor Color white
|
8453
|
44 |
|
|
45 |
selection.hilightFrameColor nil
|
|
46 |
selection.hilightBackgroundColorNoFocus =selectionGrey
|
|
47 |
selection.hilightForegroundColorNoFocus (Color black)
|
|
48 |
selection.hilightBackgroundColor =selectionBlue
|
|
49 |
selection.hilightForegroundColor (Color white)
|
|
50 |
selection.hilightStyle #macosx
|
|
51 |
|
|
52 |
menu.enteredLevel 0
|
|
53 |
|
|
54 |
;; enable this, when old menuView cares for it also
|
|
55 |
;; menu.itemMargin 1
|
|
56 |
;; menu.backgroundColor (Color white)
|
|
57 |
menu.foregroundColor (Color white)
|
|
58 |
;; menu.hilightBackgroundColor =selectionBlue
|
|
59 |
menu.hilightForegroundColor (Color white)
|
|
60 |
menu.selectionFollowsMouse true
|
|
61 |
menu.enteredBackgroundColor =menu.hilightBackgroundColor
|
|
62 |
menu.enteredForegroundColor =menu.hilightForegroundColor
|
|
63 |
menu.iconIndicationOn.bitmap (ToolbarIconLibrary checkToggleOnIcon)
|
|
64 |
menu.iconIndicationOff.bitmap (ToolbarIconLibrary checkToggleOffIcon)
|
|
65 |
menu.iconDisabledIndicationOn.bitmapFile (ToolbarIconLibrary checkToggleOnDisabledIcon)
|
|
66 |
menu.iconDisabledIndicationOff.bitmapFile (ToolbarIconLibrary checkToggleOffDisabledIcon)
|
|
67 |
menu.iconRadioOn.bitmap (ToolbarIconLibrary radioOnIcon)
|
|
68 |
menu.iconRadioOff.bitmap (ToolbarIconLibrary radioOffIcon)
|
|
69 |
menu.iconDisabledRadioOn.bitmap (ToolbarIconLibrary radioOnDisabledIcon)
|
|
70 |
menu.iconDisabledRadioOff.bitmap (ToolbarIconLibrary radioOffDisabledIcon)
|
|
71 |
|
|
72 |
menu.iconIndicationOn (ToolbarIconLibrary checkToggleOnIcon)
|
|
73 |
menu.iconIndicationOff (ToolbarIconLibrary checkToggleOffIcon)
|
|
74 |
menu.iconDisabledIndicationOn (ToolbarIconLibrary checkToggleOffDisabledIcon)
|
|
75 |
menu.iconDisabledIndicationOff (ToolbarIconLibrary checkToggleOffIcon)
|
|
76 |
|
|
77 |
|
|
78 |
button.edgeStyle nil
|
|
79 |
button.borderWidth 1
|
|
80 |
button.activeLevel 0
|
|
81 |
button.passiveLevel 0
|
|
82 |
|
|
83 |
button.frameColor (Color redByte:16rAC greenByte:16rAC blueByte:16rAC)
|
|
84 |
button.enteredFrameColor (Color red:50 green:70 blue:92)
|
|
85 |
button.activeFrameColor (Color red:34 green:62 blue:90)
|
|
86 |
button.enteredBackgroundColor ((GradientBackground vertical:(Color rgbValue:16rEBF3FB) to:(Color rgbValue:16rDCEBFB)) usedLength:24)
|
|
87 |
; button.activeBackgroundColor ((GradientBackground vertical:(Color rgbValue:16rDAEBFB) to:(Color rgbValue:16rC3E0FB)) usedLength:24)
|
|
88 |
button.activeForegroundColor (Color black)
|
|
89 |
|
|
90 |
button.style #MacOSX
|
|
91 |
button.borderStyle #MacButtonBorder
|
|
92 |
button.borderWidth 0
|
|
93 |
button.activeLevel 0
|
|
94 |
button.passiveLevel 0
|
|
95 |
|
|
96 |
button.passiveBackgroundColor1 (Color grey:19 "91")
|
|
97 |
button.passiveBackgroundColor2 (Color grey:0 "100")
|
|
98 |
button.passiveBackgroundColor3 (Color grey:5 "95")
|
|
99 |
|
|
100 |
button.disabledBackgroundColor1 (Color grey:16 "84")
|
|
101 |
button.disabledBackgroundColor2 (Color grey:34 "66")
|
|
102 |
button.disabledBackgroundColor3 (Color grey:9 "91")
|
|
103 |
|
|
104 |
button.enteredBackgroundColor1 (Color rgbValue:16r2C0C0C "16rd3f4f3")
|
|
105 |
button.enteredBackgroundColor2 (Color rgbValue:16r633711 "16r9cc8ed")
|
|
106 |
button.enteredBackgroundColor3 (Color rgbValue:16r2A0602 "16rd5f9fe")
|
|
107 |
|
|
108 |
button.activeBackgroundColor1 (Color rgbValue:16r2C0C0C "16rd3f4f3")
|
|
109 |
button.activeBackgroundColor2 (Color rgbValue:16r633711 "16r9cc8ed")
|
|
110 |
button.activeBackgroundColor3 (Color rgbValue:16r2A0602 "16rd5f9fe")
|
|
111 |
|
|
112 |
button.passiveBorderColor (Color rgbValue:16r2257AD "16rB7B7B7")
|
|
113 |
button.activeBorderColor =button.activeBackgroundColor2
|
|
114 |
button.enteredBorderColor =button.enteredBackgroundColor2
|
|
115 |
|
8455
|
116 |
button.disabledEtchedForegroundColor (Color black)
|
|
117 |
button.disabledForegroundColor (Color grey:75)
|
|
118 |
|
8453
|
119 |
arrowButton.borderWidth 0
|
|
120 |
checkToggle.borderWidth 0
|
|
121 |
radioButton.borderWidth 0
|
|
122 |
comboView.button.borderWidth 0
|
|
123 |
|
|
124 |
comboView.downForm (ToolbarIconLibrary scrollDownOffIcon)
|
|
125 |
comboView.disabledDownForm (ToolbarIconLibrary scrollDownOffIcon)
|
|
126 |
comboView.enteredDownForm (ToolbarIconLibrary scrollDownOffEntered2Icon)
|
|
127 |
comboView.activeDownForm (ToolbarIconLibrary scrollDownActiveIcon)
|
|
128 |
comboView.button.activeLevel 0
|
|
129 |
comboView.button.passiveLevel 0
|
|
130 |
comboView.button.activeBackgroundColor =viewGrey
|
|
131 |
; comboView.button.backgroundColor (Color white)
|
|
132 |
; comboView.level 0
|
|
133 |
|
|
134 |
; selection.highlightEnterItem true "/ underline-highlight item under cursor
|
|
135 |
|
|
136 |
slider.NTallyMarks nil
|
|
137 |
|
|
138 |
scrollBar.position #right
|
|
139 |
scrollBar.buttonPositions #bottom
|
|
140 |
scrollBar.vScrollBarWidth 12
|
|
141 |
scrollBar.hScrollBarHeight 12
|
|
142 |
; scrollBar.viewBackground 16rF0F0F0
|
|
143 |
; scrollBar.viewBackground 16r0F0F0F
|
|
144 |
scrollBar.viewBackground =viewGrey
|
|
145 |
; scrollBar.hideIfPointerOutside true
|
|
146 |
|
|
147 |
; scroller.viewBackground 16rF0F0F0
|
|
148 |
; scroller.viewBackground 16r0F0F0F
|
|
149 |
scroller.viewBackground =viewGrey
|
|
150 |
scroller.NTallyMarks nil
|
|
151 |
scroller.tallyLevel nil
|
|
152 |
scroller.tallyInset nil
|
|
153 |
scroller.tallyDistance nil
|
|
154 |
scroller.thumbEdgeStyle nil
|
|
155 |
scroller.thumbInset 2
|
|
156 |
scroller.thumbLevel 0
|
|
157 |
; scroller.thumbColor 16rB0B0B0
|
|
158 |
; scroller.thumbColor 16r4F4F4F
|
|
159 |
scroller.thumbColor 16r808080
|
|
160 |
scroller.thumbFrameColor nil
|
|
161 |
; scroller.thumbEnteredColor 16r808080
|
|
162 |
scroller.thumbEnteredColor 16rC0C0C0
|
|
163 |
scroller.thumbActiveColor =scroller.thumbEnteredColor
|
|
164 |
scroller.thumbShadowColor nil
|
|
165 |
scroller.thumbLightColor nil
|
|
166 |
scroller.thumbHalfLightColor nil
|
|
167 |
scroller.roundStyle true
|
|
168 |
scroller.vista3DStyle false
|
|
169 |
|
|
170 |
;
|
|
171 |
;miniScroller.size 3 "/ in millimeters
|
|
172 |
;
|
|
173 |
;
|
|
174 |
;arrowButton.upForm (ToolbarIconLibrary scrollUpOffIcon)
|
|
175 |
;arrowButton.enteredUpForm (ToolbarIconLibrary scrollUpOffEntered2Icon)
|
|
176 |
;arrowButton.activeUpForm (ToolbarIconLibrary scrollUpActiveIcon)
|
|
177 |
;arrowButton.disabledUpForm (ToolbarIconLibrary scrollUpOffIcon)
|
|
178 |
;
|
|
179 |
;arrowButton.downForm (ToolbarIconLibrary scrollDownOffIcon)
|
|
180 |
;arrowButton.enteredDownForm (ToolbarIconLibrary scrollDownOffEntered2Icon)
|
|
181 |
;arrowButton.activeDownForm (ToolbarIconLibrary scrollDownActiveIcon)
|
|
182 |
;arrowButton.disabledDownForm (ToolbarIconLibrary scrollDownOffIcon)
|
|
183 |
;
|
|
184 |
;arrowButton.leftForm (ToolbarIconLibrary scrollLeftOffIcon)
|
|
185 |
;arrowButton.enteredLeftForm (ToolbarIconLibrary scrollLeftOffEntered2Icon)
|
|
186 |
;arrowButton.activeLeftForm (ToolbarIconLibrary scrollLeftActiveIcon)
|
|
187 |
;arrowButton.disabledLeftForm (ToolbarIconLibrary scrollLeftOffIcon)
|
|
188 |
;
|
|
189 |
;arrowButton.rightForm (ToolbarIconLibrary scrollRightOffIcon)
|
|
190 |
;arrowButton.enteredRightForm (ToolbarIconLibrary scrollRightOffEntered2Icon)
|
|
191 |
;arrowButton.activeRightForm (ToolbarIconLibrary scrollRightActiveIcon)
|
|
192 |
;arrowButton.disabledRightForm (ToolbarIconLibrary scrollRightOffIcon)
|
|
193 |
;
|
|
194 |
;
|
|
195 |
;arrowButton.leftFormFile 'ScrollLt.xp.xpm'
|
|
196 |
;arrowButton.enteredLeftFormFile 'ScrollLt_entered.xp.xpm'
|
|
197 |
;arrowButton.activeLeftFormFile 'ScrollLt_active.xp.xpm'
|
|
198 |
;arrowButton.disabledLeftFormFile 'ScrollLt_disabled.xp.xpm'
|
|
199 |
;
|
|
200 |
;arrowButton.rightFormFile 'ScrollRt.xp.xpm'
|
|
201 |
;arrowButton.enteredRightFormFile 'ScrollRt_entered.xp.xpm'
|
|
202 |
;arrowButton.activeRightFormFile 'ScrollRt_active.xp.xpm'
|
|
203 |
;arrowButton.disabledRightFormFile 'ScrollRt_disabled.xp.xpm'
|
|
204 |
;
|
|
205 |
;arrowButton.passiveLevel 0
|
|
206 |
;arrowButton.activeLevel 0
|
|
207 |
;arrowButton.backgroundColor =scroller.viewBackground
|
|
208 |
;arrowButton.activeBackgroundColor =scroller.viewBackground
|
|
209 |
;
|
8457
|
210 |
noteBook.backgroundColor =viewBackground slightlyLightened
|
|
211 |
; noteBook.backgroundColor =viewBackground
|
|
212 |
noteBook.activeBackgroundColor =viewBackground
|
|
213 |
; noteBook.foregroundColor Color white
|
|
214 |
noteBook.foregroundColor Color white slightlyDarkened
|
|
215 |
noteBook.activeForegroundColor Color white
|
|
216 |
noteBook.lightColor =lightColor
|
|
217 |
noteBook.shadowColor =shadowColor
|
|
218 |
; noteBook.passiveBackgroundColor =viewBackground slightlyLightened
|
|
219 |
; noteBook.passiveForegroundColor Color white
|
8453
|
220 |
;
|
|
221 |
;checkToggle.bitmapFile 'CheckOn10_xp.xpm'
|
|
222 |
radioButton.passiveImage (ToolbarIconLibrary radioOffIcon)
|
|
223 |
radioButton.activeImage (ToolbarIconLibrary radioOnIcon)
|
|
224 |
radioButton.enteredPassiveImage (ToolbarIconLibrary radioOffIcon)
|
|
225 |
radioButton.enteredActiveImage (ToolbarIconLibrary radioOnIcon)
|
|
226 |
radioButton.disabledPassiveImage (ToolbarIconLibrary radioOffDisabledIcon)
|
|
227 |
radioButton.disabledActiveImage (ToolbarIconLibrary radioOnDisabledIcon)
|
|
228 |
checkToggle.disabledActiveImage (ToolbarIconLibrary checkToggleOnDisabledIcon)
|
|
229 |
checkToggle.disabledPassiveImage (ToolbarIconLibrary checkToggleOffDisabledIcon)
|
|
230 |
checkToggle.activeImage (ToolbarIconLibrary checkToggleOnIcon)
|
|
231 |
checkToggle.passiveImage (ToolbarIconLibrary checkToggleOffIcon)
|
|
232 |
checkToggle.enteredPassiveImage (ToolbarIconLibrary checkToggleOffEnteredIcon)
|
|
233 |
checkToggle.enteredActiveImage (ToolbarIconLibrary checkToggleOnEnteredIcon)
|
|
234 |
checkToggle.activeLevel 0
|
|
235 |
checkToggle.passiveLevel 0
|
|
236 |
checkToggle.disabledBackgroundColor =viewGrey
|
|
237 |
checkToggle.backgroundColor =viewGrey
|
|
238 |
checkToggle.activeBackgroundColor =viewGrey
|
|
239 |
;
|
|
240 |
;
|
|
241 |
;noteBook.activeTabMarkerColor (Color red:100 green:78 blue:23)
|
|
242 |
noteBook.canvasLevel 0
|
|
243 |
noteBook.tabLevel 1
|
|
244 |
;
|
|
245 |
;popup.borderColor (Color grey:50)
|
|
246 |
;popup.borderWidth 1
|
|
247 |
;
|
|
248 |
;editField.level 0
|
|
249 |
;editField.borderWidth 1
|
|
250 |
editField.borderColor (Color brightness:0.75)
|
|
251 |
;
|
|
252 |
;comboView.level 0
|
|
253 |
;comboView.borderWidth 1
|
|
254 |
;comboView.borderColor (Color redByte:175 greenByte:190 blueByte:240)
|
|
255 |
;
|
|
256 |
;; label.foregroundColor (Color redByte:0 greenByte:70 blueByte:213)
|
|
257 |
;; button.foregroundColor (Color black)
|
|
258 |
;; radioButton.foregroundColor (Color black)
|
|
259 |
;; checkBox.labelForegroundColor (Color black)
|
|
260 |
;
|
|
261 |
;; noteBook.foregroundColor (Color redByte:0 greenByte:70 blueByte:213)
|
|
262 |
; framedBox.foregroundColor (Color redByte:0 greenByte:70 blueByte:213)
|
|
263 |
; framedBox.frameLineOnly true
|
|
264 |
;
|
|
265 |
variablePanel.handleLevel 0
|
|
266 |
variablePanel.handleStyle #iris
|
|
267 |
|
|
268 |
variablePanel.snapLevel 0
|
|
269 |
variablePanel.snapEnterLevel 1
|
|
270 |
variablePanel.selectedLevel 0
|
|
271 |
|
|
272 |
;
|
|
273 |
;infoBox.iconFile 'bitmaps/Information_XP.xpm'
|
|
274 |
;warningBox.iconFile 'bitmaps/Warning_XP.xpm'
|
|
275 |
;requestBox.iconFile 'bitmaps/Request_XP.xpm'
|
|
276 |
;errorBox.iconFile 'bitmaps/Error_XP.xpm'
|
|
277 |
;
|
|
278 |
;selection.backgroundColor (Color white)
|
|
279 |
;
|
|
280 |
;;selection.hilightForegroundColor (Color black)
|
|
281 |
;;selection.hilightBackgroundColor (Color rgbValue:16rDFF0F8)
|
|
282 |
;;selection.hilightFrameColor (Color rgbValue:16r96D9F9)
|
|
283 |
;
|
|
284 |
;;;;menu.hilightForegroundColor (Color black)
|
|
285 |
;;;;menu.hilightBackgroundColor (Color rgbValue:16rDAEBF3)
|
|
286 |
;;;;menu.hilightFrameColor (Color rgbValue:16rA8D8EB)
|
|
287 |
;
|
|
288 |
;editField.selectionBackgroundColor =selectionBlue
|
|
289 |
;editField.selectionForegroundColor (Color white)
|
|
290 |
|
|
291 |
text.backgroundColor =viewGrey
|
|
292 |
text.foregroundColor Color white
|
|
293 |
text.selectionBackgroundColor (Color rgbValue:16rb3d7fd)
|
|
294 |
text.selectionForegroundColor Color black
|
|
295 |
text.topMargin 4
|
|
296 |
|
|
297 |
codeView2.level 0
|
|
298 |
|
|
299 |
;scrolledView.level 0
|
|
300 |
|
|
301 |
; activeHelp.backgroundColor Color rgbValue:16F0F0F0
|
|
302 |
activeHelp.foregroundColor Color black
|
|
303 |
activeHelp.borderWidth 1
|
|
304 |
activeHelp.borderColor (Color grey:70)
|
|
305 |
activeHelp.font (Font family:'helvetica' face:'roman' style:'light' size:12)
|
|
306 |
|
|
307 |
dialogBox.okAtLeft true
|