5055
|
1 |
; View defaultStyle:#mswindowsVista
|
|
2 |
;
|
7309
|
3 |
; $Header$
|
|
4 |
|
|
5 |
name #winVista
|
|
6 |
|
|
7 |
comment 'Vista lookalike'
|
|
8 |
previewFileName 'viewStyleSample_winvista.png'
|
5055
|
9 |
|
7309
|
10 |
#if (Language == #german) or:[Language == #de]
|
|
11 |
comment 'an Windows Vista angelehnter Stil'
|
|
12 |
#endif
|
|
13 |
|
|
14 |
#if (Language == #french) or:[Language == #fr]
|
|
15 |
comment 'Un style qui résemble Windows Vista'
|
|
16 |
#endif
|
|
17 |
|
5673
|
18 |
scroller.vista3DStyle false
|
5055
|
19 |
|
|
20 |
ToolbarIconLibrary ?(Smalltalk at:#VistaToolbarIconLibrary) ? (Smalltalk at:#XPToolbarIconLibrary) ? GenericToolbarIconLibrary
|
|
21 |
useQuestForHelp false
|
|
22 |
|
|
23 |
;
|
|
24 |
; unfinished
|
|
25 |
;
|
|
26 |
|
|
27 |
;
|
|
28 |
; notice: the values below
|
|
29 |
; are not used when running under native Windows
|
|
30 |
; (uses system-settings values then)
|
|
31 |
;
|
|
32 |
#if Screen current hasGreyscales
|
|
33 |
|
|
34 |
selectionBlue (Color red:20.0 green:60.0 blue:100.0) exactOrNearestOn:(Screen current)
|
|
35 |
|
|
36 |
viewGrey (Color grey:95) exactOrNearestOn:(Screen current)
|
|
37 |
viewLightGrey Color white
|
|
38 |
lightColor Color white
|
|
39 |
halfShadowColor (Color grey:80) exactOrNearestOn:(Screen current)
|
|
40 |
halfLightColor =viewGrey
|
|
41 |
shadowColor (Color grey:60) exactOrNearestOn:(Screen current)
|
|
42 |
|
|
43 |
#else
|
|
44 |
|
|
45 |
selectionBlue Color black
|
|
46 |
viewGrey Color white
|
|
47 |
viewLightGrey Color white
|
|
48 |
lightColor Color grey:50
|
|
49 |
shadowColor Color black
|
|
50 |
|
|
51 |
#endif
|
|
52 |
|
|
53 |
#if Screen current platformName = 'WIN32'
|
|
54 |
|
|
55 |
selectionBlue [Screen current getSystemColor:#'COLOR_HIGHLIGHT']
|
|
56 |
menu.backgroundColor [Screen current getSystemColor:#'COLOR_MENU' ]
|
|
57 |
menu.foregroundColor [Screen current getSystemColor:#'COLOR_MENUTEXT' ]
|
|
58 |
viewGrey [Screen current getSystemColor:#'COLOR_BTNFACE' ]
|
|
59 |
lightenedViewGrey [(Screen current getSystemColor:#'COLOR_BTNFACE') lightened ]
|
|
60 |
darkenedViewGrey [(Screen current getSystemColor:#'COLOR_BTNFACE') darkened ]
|
|
61 |
|
|
62 |
#else
|
|
63 |
|
|
64 |
lightenedViewGrey Color redByte:240 greenByte:240 blueByte:240
|
|
65 |
darkenedViewGrey Color redByte:150 greenByte:150 blueByte:150
|
|
66 |
|
|
67 |
#endif
|
|
68 |
|
|
69 |
#include 'mswindows95.common'
|
|
70 |
|
|
71 |
menu.enteredLevel 0
|
|
72 |
; menu.buttonEnteredLevel 2 "/ sigh - does not work
|
|
73 |
|
|
74 |
;; enable this, when old menuView cares for it also
|
|
75 |
;; menu.itemMargin 1
|
|
76 |
menu.selectionFollowsMouse true
|
|
77 |
menu.enteredBackgroundColor =menu.hilightBackgroundColor
|
|
78 |
menu.enteredForegroundColor =menu.hilightForegroundColor
|
|
79 |
menu.iconIndicationOn.bitmapFile 'CheckOn_xp.xpm'
|
|
80 |
menu.iconIndicationOff.bitmapFile 'CheckOff_xp.xpm'
|
|
81 |
menu.iconRadioOn.bitmap (VistaToolbarIconLibrary radioOn12x12Icon)
|
|
82 |
menu.iconRadioOff.bitmap (VistaToolbarIconLibrary radioOff12x12Icon)
|
|
83 |
menu.iconDisabledIndicationOn.bitmapFile 'CheckOn_disabled_xp.xpm'
|
|
84 |
menu.iconDisabledIndicationOff.bitmapFile 'CheckOff_disabled_xp.xpm'
|
|
85 |
menu.iconDisabledRadioOn.bitmap (VistaToolbarIconLibrary radioOnDisabled12x12Icon)
|
|
86 |
menu.iconDisabledRadioOff.bitmap (VistaToolbarIconLibrary radioOffDisabled12x12Icon)
|
|
87 |
|
|
88 |
;button.edgeStyle #soft
|
|
89 |
;button.activeLevel -1
|
|
90 |
;button.passiveLevel 3
|
|
91 |
;button.enteredBackgroundColor [ (Screen current getSystemColor:#'COLOR_BTNFACE') lightened ]
|
|
92 |
|
7309
|
93 |
comboView.downForm (VistaToolbarIconLibrary scrollDownOffIcon)
|
|
94 |
comboView.disabledDownForm (VistaToolbarIconLibrary scrollDownOffIcon)
|
|
95 |
comboView.enteredDownForm (VistaToolbarIconLibrary scrollDownOffEntered2Icon)
|
|
96 |
comboView.activeDownForm (VistaToolbarIconLibrary scrollDownActiveIcon)
|
5448
|
97 |
; comboView.downFormFile 'ComboDn_xp.xpm'.
|
|
98 |
; comboView.disabledDownFormFile 'ComboDn_disabled_xp.xpm'.
|
|
99 |
; comboView.activeDownFormFile 'ComboDn_active_xp.xpm'.
|
|
100 |
; comboView.enteredDownFormFile 'ComboDn_entered_xp.xpm'.
|
5055
|
101 |
comboView.button.activeLevel 0
|
|
102 |
comboView.button.passiveLevel 0
|
|
103 |
comboView.button.activeBackgroundColor =viewGrey
|
|
104 |
; comboView.button.activeBackgroundColor (Color white)
|
|
105 |
; comboView.button.backgroundColor (Color white)
|
|
106 |
; comboView.level 0
|
|
107 |
|
|
108 |
; selection.highlightEnterItem true "/ underline-highlight item under cursor
|
|
109 |
|
5423
|
110 |
scroller.viewBackground (Color redByte:16rEF greenByte:16rEF blueByte:16rEF)
|
5420
|
111 |
scroller.thumbColor (Color redByte:192 greenByte:192 blueByte:192)
|
5055
|
112 |
"/ scroller.thumbLightColor (Color redByte:16rCF greenByte:16rDD blueByte:16rFD)
|
|
113 |
scroller.thumbLightColor (Color redByte:238 greenByte:244 blueByte:254)
|
|
114 |
scroller.thumbShadowColor (Color redByte:16r83 greenByte:16r9E blueByte:16rD8)
|
5421
|
115 |
scroller.thumbEnteredColor (Color red:64 green:75 blue:98)
|
|
116 |
scroller.thumbActiveColor (Color red:42 green:76 blue:91)
|
5055
|
117 |
scroller.thumbLevel 0
|
|
118 |
scroller.thumbInset 1
|
|
119 |
; scroller.thumbFrameColor Color white "/ (Color redByte:175 greenByte:190 blueByte:240) darkened
|
5421
|
120 |
scroller.thumbFrameColor (Color redByte:192 greenByte:192 blueByte:192)
|
|
121 |
; scroller.thumbFrameColor2 (Color redByte:16rEF greenByte:16rEF blueByte:16rEF)
|
5055
|
122 |
scroller.thumbEdgeStyle #edged
|
|
123 |
scroller.NTallyMarks 4
|
|
124 |
scroller.tallyLevel 1
|
|
125 |
scroller.tallyInset 6
|
|
126 |
scroller.tallyDistance 2
|
|
127 |
scroller.snapBackDistance 100
|
|
128 |
scroller.minThumbSize 16
|
|
129 |
|
5420
|
130 |
scroller.vista3DStyle true
|
|
131 |
|
5516
|
132 |
miniScroller.size 3 "/ in millimeters
|
5427
|
133 |
|
5420
|
134 |
|
7309
|
135 |
arrowButton.upForm (VistaToolbarIconLibrary scrollUpOffIcon)
|
|
136 |
arrowButton.enteredUpForm (VistaToolbarIconLibrary scrollUpOffEntered2Icon)
|
|
137 |
arrowButton.activeUpForm (VistaToolbarIconLibrary scrollUpActiveIcon)
|
|
138 |
arrowButton.disabledUpForm (VistaToolbarIconLibrary scrollUpOffIcon)
|
5055
|
139 |
|
7309
|
140 |
arrowButton.downForm (VistaToolbarIconLibrary scrollDownOffIcon)
|
|
141 |
arrowButton.enteredDownForm (VistaToolbarIconLibrary scrollDownOffEntered2Icon)
|
|
142 |
arrowButton.activeDownForm (VistaToolbarIconLibrary scrollDownActiveIcon)
|
|
143 |
arrowButton.disabledDownForm (VistaToolbarIconLibrary scrollDownOffIcon)
|
5055
|
144 |
|
7309
|
145 |
arrowButton.leftForm (VistaToolbarIconLibrary scrollLeftOffIcon)
|
|
146 |
arrowButton.enteredLeftForm (VistaToolbarIconLibrary scrollLeftOffEntered2Icon)
|
|
147 |
arrowButton.activeLeftForm (VistaToolbarIconLibrary scrollLeftActiveIcon)
|
|
148 |
arrowButton.disabledLeftForm (VistaToolbarIconLibrary scrollLeftOffIcon)
|
5450
|
149 |
|
7309
|
150 |
arrowButton.rightForm (VistaToolbarIconLibrary scrollRightOffIcon)
|
|
151 |
arrowButton.enteredRightForm (VistaToolbarIconLibrary scrollRightOffEntered2Icon)
|
|
152 |
arrowButton.activeRightForm (VistaToolbarIconLibrary scrollRightActiveIcon)
|
|
153 |
arrowButton.disabledRightForm (VistaToolbarIconLibrary scrollRightOffIcon)
|
5450
|
154 |
|
|
155 |
|
5055
|
156 |
arrowButton.leftFormFile 'ScrollLt.xp.xpm'
|
|
157 |
arrowButton.enteredLeftFormFile 'ScrollLt_entered.xp.xpm'
|
|
158 |
arrowButton.activeLeftFormFile 'ScrollLt_active.xp.xpm'
|
|
159 |
arrowButton.disabledLeftFormFile 'ScrollLt_disabled.xp.xpm'
|
|
160 |
|
|
161 |
arrowButton.rightFormFile 'ScrollRt.xp.xpm'
|
|
162 |
arrowButton.enteredRightFormFile 'ScrollRt_entered.xp.xpm'
|
|
163 |
arrowButton.activeRightFormFile 'ScrollRt_active.xp.xpm'
|
|
164 |
arrowButton.disabledRightFormFile 'ScrollRt_disabled.xp.xpm'
|
|
165 |
|
|
166 |
arrowButton.passiveLevel 0
|
|
167 |
arrowButton.activeLevel 0
|
|
168 |
arrowButton.backgroundColor =scroller.viewBackground
|
|
169 |
arrowButton.activeBackgroundColor =scroller.viewBackground
|
|
170 |
|
|
171 |
noteBook.backgroundColor =lightenedViewGrey
|
|
172 |
noteBook.activeBackgroundColor =viewBackground
|
|
173 |
noteBook.foregroundColor Color black
|
|
174 |
noteBook.lightColor =darkenedViewGrey
|
|
175 |
noteBook.shadowColor =darkenedViewGrey
|
|
176 |
noteBook.passiveBackgroundColor =lightenedViewGrey
|
|
177 |
|
|
178 |
checkToggle.bitmapFile 'CheckOn10_xp.xpm'
|
7309
|
179 |
radioButton.passiveImage (VistaToolbarIconLibrary radioOff12x12Icon)
|
|
180 |
radioButton.activeImage (VistaToolbarIconLibrary radioOn12x12Icon)
|
|
181 |
radioButton.enteredPassiveImage (VistaToolbarIconLibrary radioOffEntered12x12Icon)
|
|
182 |
radioButton.enteredActiveImage (VistaToolbarIconLibrary radioOnEntered12x12Icon)
|
|
183 |
radioButton.disabledPassiveImage (VistaToolbarIconLibrary radioOffDisabled12x12Icon)
|
|
184 |
radioButton.disabledActiveImage (VistaToolbarIconLibrary radioOnDisabled12x12Icon)
|
|
185 |
checkToggle.disabledActiveImage (VistaToolbarIconLibrary checkToggleOnDisabledIcon)
|
|
186 |
checkToggle.disabledPassiveImage (VistaToolbarIconLibrary checkToggleOffDisabledIcon)
|
|
187 |
checkToggle.activeImage (VistaToolbarIconLibrary checkToggleOnIcon)
|
|
188 |
checkToggle.passiveImage (VistaToolbarIconLibrary checkToggleOffIcon)
|
|
189 |
checkToggle.enteredPassiveImage (VistaToolbarIconLibrary checkToggleOffEnteredIcon)
|
|
190 |
checkToggle.enteredActiveImage (VistaToolbarIconLibrary checkToggleOnEnteredIcon)
|
5425
|
191 |
checkToggle.activeLevel 0
|
|
192 |
checkToggle.passiveLevel 0
|
5519
|
193 |
checkToggle.disabledBackgroundColor =viewGrey
|
|
194 |
checkToggle.backgroundColor =viewGrey
|
|
195 |
checkToggle.activeBackgroundColor =viewGrey
|
5055
|
196 |
|
7309
|
197 |
menu.iconIndicationOn (VistaToolbarIconLibrary checkToggleOnIcon)
|
|
198 |
menu.iconIndicationOff (VistaToolbarIconLibrary checkToggleOffIcon)
|
|
199 |
menu.iconDisabledIndicationOn (VistaToolbarIconLibrary checkToggleOffDisabledIcon)
|
|
200 |
menu.iconDisabledIndicationOff (VistaToolbarIconLibrary checkToggleOffIcon)
|
5429
|
201 |
|
5412
|
202 |
noteBook.activeTabMarkerColor (Color red:100 green:78 blue:23)
|
5055
|
203 |
|
5412
|
204 |
popup.borderColor (Color grey:50)
|
|
205 |
popup.borderWidth 1
|
|
206 |
editField.level 0
|
|
207 |
editField.borderWidth 1
|
|
208 |
editField.borderColor (Color redByte:175 greenByte:190 blueByte:240)
|
5385
|
209 |
|
|
210 |
; does not work
|
5055
|
211 |
; comboView.level 0
|
|
212 |
; comboView.borderWidth 1
|
|
213 |
; comboView.borderColor (Color redByte:175 greenByte:190 blueByte:240)
|
|
214 |
|
|
215 |
; label.foregroundColor (Color redByte:0 greenByte:70 blueByte:213)
|
|
216 |
; button.foregroundColor (Color black)
|
|
217 |
; radioButton.foregroundColor (Color black)
|
|
218 |
; checkBox.labelForegroundColor (Color black)
|
|
219 |
|
|
220 |
; noteBook.foregroundColor (Color redByte:0 greenByte:70 blueByte:213)
|
|
221 |
framedBox.foregroundColor (Color redByte:0 greenByte:70 blueByte:213)
|
|
222 |
|
5281
|
223 |
variablePanel.handleLevel 0
|
|
224 |
|
5055
|
225 |
infoBox.iconFile 'bitmaps/Information_XP.xpm'
|
|
226 |
warningBox.iconFile 'bitmaps/Warning_XP.xpm'
|
|
227 |
requestBox.iconFile 'bitmaps/Request_XP.xpm'
|
|
228 |
errorBox.iconFile 'bitmaps/Error_XP.xpm'
|
5673
|
229 |
|
|
230 |
selection.backgroundColor (Color white)
|
|
231 |
|
5674
|
232 |
;selection.hilightForegroundColor (Color black)
|
|
233 |
;selection.hilightBackgroundColor (Color rgbValue:16rDFF0F8)
|
|
234 |
;selection.hilightFrameColor (Color rgbValue:16r96D9F9)
|
5673
|
235 |
|
5674
|
236 |
;;;menu.hilightForegroundColor (Color black)
|
|
237 |
;;;menu.hilightBackgroundColor (Color rgbValue:16rDAEBF3)
|
|
238 |
;;;menu.hilightFrameColor (Color rgbValue:16rA8D8EB)
|
5673
|
239 |
|
|
240 |
editField.selectionBackgroundColor =selectionBlue
|
|
241 |
editField.selectionForegroundColor (Color white)
|
5954
|
242 |
|
|
243 |
scrolledView.level 0
|