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