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