author | Claus Gittinger <cg@exept.de> |
Mon, 12 Dec 2016 11:20:26 +0100 | |
changeset 7738 | ccae8e4abae1 |
parent 6998 | 7b934144a496 |
permissions | -rw-r--r-- |
199 | 1 |
; |
309 | 2 |
; common motif stuff (not a style, but included by all motif style variations) |
199 | 3 |
; |
4 |
; |
|
6995 | 5 |
; $Header$ |
199 | 6 |
|
7 |
; |
|
8 |
; this is to be included from the real style, |
|
9 |
; with (at least) viewGrey, shadowColor, lightColor and mediumColor |
|
10 |
; being predefined |
|
11 |
; |
|
12 |
||
13 |
is3D true |
|
14 |
name #motif |
|
7738 | 15 |
ToolbarIconLibrary ?(Smalltalk at:#VistaToolbarIconLibrary) ? (Smalltalk at:#XPToolbarIconLibrary) ? GenericToolbarIconLibrary |
199 | 16 |
|
3703 | 17 |
fatFont ? Font family:'helvetica' face:'bold' style:'roman' size:12 |
199 | 18 |
|
2155 | 19 |
selectionFont ? =fatFont |
20 |
labelFont ? =fatFont |
|
21 |
menuFont ? =fatFont |
|
6621 | 22 |
textFont ? Font family:'courier' size:12 |
7738 | 23 |
activeHelp.font ? (Font family:'helvetica' face:'roman' style:'bold' size:12) |
199 | 24 |
|
25 |
viewBackground =viewGrey |
|
26 |
borderWidth 0 |
|
27 |
||
28 |
||
29 |
focusColor Color black |
|
2562 | 30 |
focus.explicitWithButtonPress true |
199 | 31 |
; focusColor Color yellow |
32 |
||
6621 | 33 |
scrollBar.position #right |
34 |
scrollBar.buttonPositions #around |
|
1924 | 35 |
scrollBar.level -2 |
36 |
scrollBar.elementSpacing 0 |
|
37 |
scrollBar.disableButtons true |
|
38 |
; scrollBar.hiding true |
|
199 | 39 |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2982
diff
changeset
|
40 |
#if Screen current isNil or:[Screen current hasGreyscales] |
1924 | 41 |
scroller.thumbColor =viewGrey |
42 |
scroller.viewBackground =mediumColor |
|
199 | 43 |
#else |
44 |
; grey 50 is too heavy - isn't it ? |
|
1924 | 45 |
; scroller.viewBackground Color grey:50 |
46 |
scroller.viewBackground Color white |
|
47 |
scroller.thumbColor Color white |
|
199 | 48 |
#endif |
1924 | 49 |
scroller.thumbLevel 2 |
50 |
scroller.thumbInset 0 |
|
51 |
scrolled.viewLevel -2 |
|
199 | 52 |
|
1924 | 53 |
scroller.ghostFrameColor Color black |
54 |
scroller.middleButtonJump true |
|
451 | 55 |
|
2468
1a93026b436f
slightly increased miniScroller sizes
Claus Gittinger <cg@exept.de>
parents:
2155
diff
changeset
|
56 |
miniScroller.size 2.5 "/ millimeters |
1a93026b436f
slightly increased miniScroller sizes
Claus Gittinger <cg@exept.de>
parents:
2155
diff
changeset
|
57 |
|
1924 | 58 |
slider.level -1 |
199 | 59 |
|
1924 | 60 |
variablePanel.trackingStyle #solidLine |
3283 | 61 |
variablePanel.handlePosition #left |
199 | 62 |
|
1924 | 63 |
framedBox.labelPosition #topLeft |
199 | 64 |
|
1948 | 65 |
label.foregroundColor Color black |
199 | 66 |
|
6621 | 67 |
button.activeLevel -2 |
1948 | 68 |
button.passiveLevel 2 |
69 |
button.returnButtonHasBorder true |
|
199 | 70 |
|
1948 | 71 |
button.activeBackgroundColor =mediumColor |
72 |
button.activeForegroundColor Color black |
|
73 |
button.disabledForegroundColor =shadowColor |
|
199 | 74 |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2982
diff
changeset
|
75 |
#if Screen current notNil and:[Screen current hasGreyscales not] |
1948 | 76 |
button.activeBackgroundColor Color grey:80 |
199 | 77 |
#endif |
78 |
||
1948 | 79 |
arrowButton.style #motif |
80 |
arrowButton.activeLevel 0 |
|
81 |
arrowButton.passiveLevel 0 |
|
199 | 82 |
|
1948 | 83 |
arrowButton.foregroundColor =viewGrey |
84 |
arrowButton.backgroundColor =mediumColor |
|
85 |
arrowButton.activeForegroundColor =viewGrey |
|
86 |
arrowButton.activeBackgroundColor =viewGrey |
|
87 |
arrowButton.disabledForegroundColor =viewGrey |
|
199 | 88 |
|
6995 | 89 |
radioButton.style #motif |
1951 | 90 |
|
1948 | 91 |
editField.backgroundColor =mediumColor |
199 | 92 |
|
6995 | 93 |
menu.hilightLevel 2 |
94 |
menu.separatingLineInset 0 |
|
95 |
menuBackgroundColor =viewGrey |
|
96 |
menu.viewBackgroundColor =viewGrey |
|
97 |
menu.disabledForegroundColor =shadowColor |
|
98 |
menu.extraMargin 2 |
|
99 |
menu.suppressSeparatingLinesInToolbar true |
|
100 |
||
101 |
menu.buttonPassiveLevel 1 |
|
102 |
menu.buttonActiveLevel -1 |
|
103 |
menu.buttonEnteredLevel 1 |
|
199 | 104 |
|
1948 | 105 |
pullDownMenu.keepMenu true |
3176 | 106 |
pullDownMenu.menuLevel 2 |
1948 | 107 |
pullDownMenu.level 1 |
108 |
pullDownMenu.hilightLevel 2 |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2982
diff
changeset
|
109 |
#if Screen current notNil and:[Screen current hasGreyscales not] |
1948 | 110 |
pullDownMenu.hilightForegroundColor Color white |
111 |
pullDownMenu.hilightBackgroundColor Color black |
|
199 | 112 |
#endif |
1948 | 113 |
pullDownMenu.autoselectFirst true |
199 | 114 |
|
2581 | 115 |
popup.level 2 |
6621 | 116 |
popup.borderWidth 1 |
117 |
popup.hideOnRelease false |
|
2581 | 118 |
; popup.shadow false "/ false is the default, anyway |
119 |
||
1948 | 120 |
#selection.multiSelectionModifier #Control |
121 |
#selection.rightArrowLevel -1 |
|
122 |
selection.rightArrowLevel 2 |
|
123 |
selection.lineSpacing 4 |
|
124 |
selection.foregroundColor Color black |
|
125 |
selection.hilightBackgroundColor Color black |
|
126 |
selection.hilightStyle #motif |
|
127 |
selection.disabledForegroundColor =shadowColor |
|
199 | 128 |
|
3716 | 129 |
text.alternativeSelectionForegroundColor Color black |
130 |
text.alternativeSelectionBackgroundColor (Color redByte:150 "255" greenByte:255 blueByte:100 "204") |
|
131 |
||
1360 | 132 |
#textCursorType #caret |
1948 | 133 |
textCursor.type #ibeam |
134 |
textCursor.noFocusForegroundColor Color grey |
|
199 | 135 |
|
3755 | 136 |
activeHelp.backgroundColor Color yellow lightened lightened lightened |
137 |
activeHelp.borderWidth 1 |
|
199 | 138 |
|
1948 | 139 |
ruler.foregroundColor Color black |
140 |
ruler.backgroundColor =viewGrey |
|
199 | 141 |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2982
diff
changeset
|
142 |
#if Screen current notNil and:[Screen current hasGrayscales not] |
1948 | 143 |
html.anchorUnderline true |
144 |
html.anchorForegroundColor Color black |
|
145 |
html.backgroundColor Color white |
|
146 |
html.activeAnchorForegroundColor Color black |
|
147 |
html.activeAnchorBackgroundColor =htmlBackgroundColor |
|
148 |
html.visitedAnchorForegroundColor Color black |
|
149 |
html.exampleAnchorForegroundColor Color black |
|
1620
49812898bfe2
html defs for monochrome displays
Claus Gittinger <cg@exept.de>
parents:
1504
diff
changeset
|
150 |
#endif |
199 | 151 |
|
3703 | 152 |
dataSet.labelView.level -1 |
153 |
dataSet.labelView.verticalSpace 2 |
|
154 |
||
2486
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
155 |
; |
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
156 |
; this reverses the ok-cancel order in dialogs; |
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
157 |
; some may be used to ok being on the left ... |
2591 | 158 |
; |
2982 | 159 |
dialogBox.okAtLeft true |
2486
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
160 |
|
1948 | 161 |
infoBox.separator true |
162 |
infoBox.iconFile 'bitmaps/Information_motif.xbm' |
|
163 |
warningBox.iconFile 'bitmaps/Warning_motif.xbm' |
|
164 |
requestBox.iconFile 'bitmaps/Request_motif.xbm' |
|
3550 | 165 |
errorBox.iconFile 'bitmaps/Error_motif.xbm' |
199 | 166 |
|
6998 | 167 |
launcher.editorLevel 1 |
168 |
infobar.level 1 |
|
169 |
application.toolbarLevel 1 |
|
199 | 170 |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2982
diff
changeset
|
171 |
#if Screen current isNil or:[Screen current hasGrayscales] |
1948 | 172 |
arrowButton.upForm Image extent:11@12 \ |
199 | 173 |
depth:2 \ |
174 |
bits:#[4r0000 4r0100 4r0000 \ |
|
175 |
4r0000 4r1120 4r0000 \ |
|
176 |
4r0000 4r1120 4r0000 \ |
|
177 |
4r0001 4r1322 4r0000 \ |
|
178 |
4r0001 4r1322 4r0000 \ |
|
179 |
4r0011 4r3332 4r2000 \ |
|
180 |
4r0011 4r3332 4r2000 \ |
|
181 |
4r0113 4r3333 4r2200 \ |
|
182 |
4r0113 4r3333 4r2200 \ |
|
183 |
4r1122 4r2222 4r2220 \ |
|
184 |
4r1222 4r2222 4r2220 \ |
|
185 |
4r0000 4r0000 4r0000] \ |
|
186 |
pad:8 |
|
187 |
||
1948 | 188 |
arrowButton.downForm Image extent:11@12 \ |
199 | 189 |
depth:2 \ |
190 |
bits:#[ \ |
|
191 |
4r0000 4r0000 4r0000 \ |
|
192 |
4r1111 4r1111 4r1110 \ |
|
193 |
4r1111 4r1111 4r1220 \ |
|
194 |
4r0113 4r3333 4r2200 \ |
|
195 |
4r0113 4r3333 4r2200 \ |
|
196 |
4r0011 4r3332 4r2000 \ |
|
197 |
4r0011 4r3332 4r2000 \ |
|
198 |
4r0001 4r1322 4r0000 \ |
|
199 |
4r0001 4r1322 4r0000 \ |
|
200 |
4r0000 4r1220 4r0000 \ |
|
201 |
4r0000 4r1220 4r0000 \ |
|
202 |
4r0000 4r0200 4r0000 \ |
|
203 |
] \ |
|
204 |
pad:8 |
|
205 |
||
1948 | 206 |
arrowButton.leftForm Image extent:12@11 \ |
199 | 207 |
depth:2 \ |
208 |
bits:#[ \ |
|
209 |
4r0000 4r0000 4r0110 \ |
|
210 |
4r0000 4r0001 4r1120 \ |
|
211 |
4r0000 4r0111 4r1220 \ |
|
212 |
4r0001 4r1113 4r3220 \ |
|
213 |
4r0111 4r1333 4r3220 \ |
|
214 |
4r1113 4r3333 4r3220 \ |
|
215 |
4r0222 4r2333 4r3220 \ |
|
216 |
4r0002 4r2223 4r3220 \ |
|
217 |
4r0000 4r0222 4r2220 \ |
|
218 |
4r0000 4r0002 4r2220 \ |
|
219 |
4r0000 4r0000 4r0220 \ |
|
220 |
] \ |
|
221 |
pad:8 |
|
222 |
||
1948 | 223 |
arrowButton.rightForm Image extent:12@11 \ |
199 | 224 |
depth:2 \ |
225 |
bits:#[ \ |
|
226 |
4r0110 4r0000 4r0000 \ |
|
227 |
4r0111 4r1000 4r0000 \ |
|
228 |
4r0111 4r1110 4r0000 \ |
|
229 |
4r0113 4r3111 4r1000 \ |
|
230 |
4r0113 4r3331 4r1110 \ |
|
231 |
4r0113 4r3333 4r3222 \ |
|
232 |
4r0113 4r3332 4r2220 \ |
|
233 |
4r0113 4r3222 4r2000 \ |
|
234 |
4r0112 4r2220 4r0000 \ |
|
235 |
4r0122 4r2000 4r0000 \ |
|
236 |
4r0120 4r0000 4r0000 \ |
|
237 |
] \ |
|
238 |
pad:8 |
|
1624 | 239 |
#else |
1948 | 240 |
arrowButton.upForm Image extent:11@12 \ |
1624 | 241 |
depth:1 \ |
242 |
bits:#[2r00000000 2r00000000 \ |
|
243 |
2r00000100 2r00000000 \ |
|
244 |
2r00000100 2r00000000 \ |
|
245 |
2r00001110 2r00000000 \ |
|
246 |
2r00001110 2r00000000 \ |
|
247 |
2r00011111 2r00000000 \ |
|
248 |
2r00011111 2r00000000 \ |
|
249 |
2r00111111 2r10000000 \ |
|
250 |
2r00111111 2r10000000 \ |
|
251 |
2r01111111 2r11000000 \ |
|
252 |
2r00000000 2r00000000 \ |
|
253 |
2r00000000 2r00000000] \ |
|
254 |
pad:8 |
|
255 |
||
1948 | 256 |
arrowButton.downForm Image extent:11@12 \ |
1624 | 257 |
depth:1 \ |
258 |
bits:#[2r00000000 2r00000000 \ |
|
259 |
2r00000000 2r00000000 \ |
|
260 |
2r01111111 2r11000000 \ |
|
261 |
2r00111111 2r10000000 \ |
|
262 |
2r00111111 2r10000000 \ |
|
263 |
2r00011111 2r00000000 \ |
|
264 |
2r00011111 2r00000000 \ |
|
265 |
2r00001110 2r00000000 \ |
|
266 |
2r00001110 2r00000000 \ |
|
267 |
2r00000100 2r00000000 \ |
|
268 |
2r00000100 2r00000000 \ |
|
269 |
2r00000000 2r00000000] \ |
|
270 |
pad:8 |
|
271 |
||
1948 | 272 |
arrowButton.leftForm Image extent:12@11 \ |
1624 | 273 |
depth:1 \ |
274 |
bits:#[ \ |
|
275 |
2r00000000 2r00000000 \ |
|
276 |
2r00000000 2r01000000 \ |
|
277 |
2r00000001 2r11000000 \ |
|
278 |
2r00000111 2r11000000 \ |
|
279 |
2r00011111 2r11000000 \ |
|
280 |
2r01111111 2r11000000 \ |
|
281 |
2r00011111 2r11000000 \ |
|
282 |
2r00000111 2r11000000 \ |
|
283 |
2r00000001 2r11000000 \ |
|
284 |
2r00000000 2r11000000 \ |
|
285 |
2r00000000 2r00000000 \ |
|
286 |
] \ |
|
287 |
pad:8 |
|
288 |
||
1948 | 289 |
arrowButton.rightForm Image extent:12@11 \ |
1624 | 290 |
depth:1 \ |
291 |
bits:#[ \ |
|
292 |
2r00000000 2r00000000 \ |
|
293 |
2r00100000 2r00000000 \ |
|
294 |
2r00111000 2r00000000 \ |
|
295 |
2r00111110 2r00000000 \ |
|
296 |
2r00111111 2r10000000 \ |
|
297 |
2r00111111 2r11100000 \ |
|
298 |
2r00111111 2r10000000 \ |
|
299 |
2r00111110 2r00000000 \ |
|
300 |
2r00111000 2r00000000 \ |
|
301 |
2r00100000 2r00000000 \ |
|
302 |
2r00000000 2r00000000 \ |
|
303 |
] \ |
|
304 |
pad:8 |
|
305 |
#endif |