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