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