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