author | Claus Gittinger <cg@exept.de> |
Wed, 04 Sep 2002 16:34:35 +0200 | |
changeset 3714 | 84947d7fb23d |
parent 3703 | b186440a7cf7 |
child 3716 | d7739a80eac8 |
permissions | -rw-r--r-- |
199 | 1 |
; |
309 | 2 |
; common motif stuff (not a style, but included by all motif style variations) |
199 | 3 |
; |
4 |
; |
|
3714 | 5 |
; $Header: /cvs/stx/stx/libview/styles/motif.common,v 1.34 2002-09-04 14:33:48 cg Exp $ |
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 |
|
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 |
||
1924 | 31 |
scrollBar.position #right |
32 |
scrollBar.buttonPositions #around |
|
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 |
|
1948 | 65 |
button.activeLevel -2 |
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 |
|
1951 | 87 |
radioButton.style #motif |
88 |
||
1948 | 89 |
editField.backgroundColor =mediumColor |
199 | 90 |
|
1948 | 91 |
menu.hilightLevel 2 |
92 |
menu.separatingLineInset 0 |
|
93 |
menu.viewBackgroundColor =viewGrey |
|
94 |
menu.disabledForegroundColor =shadowColor |
|
199 | 95 |
|
1948 | 96 |
pullDownMenu.keepMenu true |
3176 | 97 |
pullDownMenu.menuLevel 2 |
1948 | 98 |
pullDownMenu.level 1 |
99 |
pullDownMenu.hilightLevel 2 |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2982
diff
changeset
|
100 |
#if Screen current notNil and:[Screen current hasGreyscales not] |
1948 | 101 |
pullDownMenu.hilightForegroundColor Color white |
102 |
pullDownMenu.hilightBackgroundColor Color black |
|
199 | 103 |
#endif |
1948 | 104 |
pullDownMenu.autoselectFirst true |
199 | 105 |
|
2581 | 106 |
popup.level 2 |
107 |
popup.borderWidth 1 |
|
108 |
popup.hideOnRelease false |
|
109 |
; popup.shadow false "/ false is the default, anyway |
|
110 |
||
1948 | 111 |
#selection.multiSelectionModifier #Control |
112 |
#selection.rightArrowLevel -1 |
|
113 |
selection.rightArrowLevel 2 |
|
114 |
selection.lineSpacing 4 |
|
115 |
selection.foregroundColor Color black |
|
116 |
selection.hilightBackgroundColor Color black |
|
117 |
selection.hilightStyle #motif |
|
118 |
selection.disabledForegroundColor =shadowColor |
|
199 | 119 |
|
1360 | 120 |
#textCursorType #caret |
1948 | 121 |
textCursor.type #ibeam |
122 |
textCursor.noFocusForegroundColor Color grey |
|
199 | 123 |
|
1948 | 124 |
activeHelp.backgroundColor Color yellow lightened |
125 |
activeHelp.borderWidth 2 |
|
199 | 126 |
|
1948 | 127 |
ruler.foregroundColor Color black |
128 |
ruler.backgroundColor =viewGrey |
|
199 | 129 |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2982
diff
changeset
|
130 |
#if Screen current notNil and:[Screen current hasGrayscales not] |
1948 | 131 |
html.anchorUnderline true |
132 |
html.anchorForegroundColor Color black |
|
133 |
html.backgroundColor Color white |
|
134 |
html.activeAnchorForegroundColor Color black |
|
135 |
html.activeAnchorBackgroundColor =htmlBackgroundColor |
|
136 |
html.visitedAnchorForegroundColor Color black |
|
137 |
html.exampleAnchorForegroundColor Color black |
|
1620
49812898bfe2
html defs for monochrome displays
Claus Gittinger <cg@exept.de>
parents:
1504
diff
changeset
|
138 |
#endif |
199 | 139 |
|
3703 | 140 |
dataSet.labelView.level -1 |
141 |
dataSet.labelView.verticalSpace 2 |
|
142 |
||
2486
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
143 |
; |
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
144 |
; 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
|
145 |
; some may be used to ok being on the left ... |
2591 | 146 |
; |
2982 | 147 |
dialogBox.okAtLeft true |
2486
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
148 |
|
1948 | 149 |
infoBox.separator true |
150 |
infoBox.iconFile 'bitmaps/Information_motif.xbm' |
|
151 |
warningBox.iconFile 'bitmaps/Warning_motif.xbm' |
|
152 |
requestBox.iconFile 'bitmaps/Request_motif.xbm' |
|
3550 | 153 |
errorBox.iconFile 'bitmaps/Error_motif.xbm' |
199 | 154 |
|
155 |
||
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2982
diff
changeset
|
156 |
#if Screen current isNil or:[Screen current hasGrayscales] |
1948 | 157 |
arrowButton.upForm Image extent:11@12 \ |
199 | 158 |
depth:2 \ |
159 |
bits:#[4r0000 4r0100 4r0000 \ |
|
160 |
4r0000 4r1120 4r0000 \ |
|
161 |
4r0000 4r1120 4r0000 \ |
|
162 |
4r0001 4r1322 4r0000 \ |
|
163 |
4r0001 4r1322 4r0000 \ |
|
164 |
4r0011 4r3332 4r2000 \ |
|
165 |
4r0011 4r3332 4r2000 \ |
|
166 |
4r0113 4r3333 4r2200 \ |
|
167 |
4r0113 4r3333 4r2200 \ |
|
168 |
4r1122 4r2222 4r2220 \ |
|
169 |
4r1222 4r2222 4r2220 \ |
|
170 |
4r0000 4r0000 4r0000] \ |
|
171 |
pad:8 |
|
172 |
||
1948 | 173 |
arrowButton.downForm Image extent:11@12 \ |
199 | 174 |
depth:2 \ |
175 |
bits:#[ \ |
|
176 |
4r0000 4r0000 4r0000 \ |
|
177 |
4r1111 4r1111 4r1110 \ |
|
178 |
4r1111 4r1111 4r1220 \ |
|
179 |
4r0113 4r3333 4r2200 \ |
|
180 |
4r0113 4r3333 4r2200 \ |
|
181 |
4r0011 4r3332 4r2000 \ |
|
182 |
4r0011 4r3332 4r2000 \ |
|
183 |
4r0001 4r1322 4r0000 \ |
|
184 |
4r0001 4r1322 4r0000 \ |
|
185 |
4r0000 4r1220 4r0000 \ |
|
186 |
4r0000 4r1220 4r0000 \ |
|
187 |
4r0000 4r0200 4r0000 \ |
|
188 |
] \ |
|
189 |
pad:8 |
|
190 |
||
1948 | 191 |
arrowButton.leftForm Image extent:12@11 \ |
199 | 192 |
depth:2 \ |
193 |
bits:#[ \ |
|
194 |
4r0000 4r0000 4r0110 \ |
|
195 |
4r0000 4r0001 4r1120 \ |
|
196 |
4r0000 4r0111 4r1220 \ |
|
197 |
4r0001 4r1113 4r3220 \ |
|
198 |
4r0111 4r1333 4r3220 \ |
|
199 |
4r1113 4r3333 4r3220 \ |
|
200 |
4r0222 4r2333 4r3220 \ |
|
201 |
4r0002 4r2223 4r3220 \ |
|
202 |
4r0000 4r0222 4r2220 \ |
|
203 |
4r0000 4r0002 4r2220 \ |
|
204 |
4r0000 4r0000 4r0220 \ |
|
205 |
] \ |
|
206 |
pad:8 |
|
207 |
||
1948 | 208 |
arrowButton.rightForm Image extent:12@11 \ |
199 | 209 |
depth:2 \ |
210 |
bits:#[ \ |
|
211 |
4r0110 4r0000 4r0000 \ |
|
212 |
4r0111 4r1000 4r0000 \ |
|
213 |
4r0111 4r1110 4r0000 \ |
|
214 |
4r0113 4r3111 4r1000 \ |
|
215 |
4r0113 4r3331 4r1110 \ |
|
216 |
4r0113 4r3333 4r3222 \ |
|
217 |
4r0113 4r3332 4r2220 \ |
|
218 |
4r0113 4r3222 4r2000 \ |
|
219 |
4r0112 4r2220 4r0000 \ |
|
220 |
4r0122 4r2000 4r0000 \ |
|
221 |
4r0120 4r0000 4r0000 \ |
|
222 |
] \ |
|
223 |
pad:8 |
|
1624 | 224 |
#else |
1948 | 225 |
arrowButton.upForm Image extent:11@12 \ |
1624 | 226 |
depth:1 \ |
227 |
bits:#[2r00000000 2r00000000 \ |
|
228 |
2r00000100 2r00000000 \ |
|
229 |
2r00000100 2r00000000 \ |
|
230 |
2r00001110 2r00000000 \ |
|
231 |
2r00001110 2r00000000 \ |
|
232 |
2r00011111 2r00000000 \ |
|
233 |
2r00011111 2r00000000 \ |
|
234 |
2r00111111 2r10000000 \ |
|
235 |
2r00111111 2r10000000 \ |
|
236 |
2r01111111 2r11000000 \ |
|
237 |
2r00000000 2r00000000 \ |
|
238 |
2r00000000 2r00000000] \ |
|
239 |
pad:8 |
|
240 |
||
1948 | 241 |
arrowButton.downForm Image extent:11@12 \ |
1624 | 242 |
depth:1 \ |
243 |
bits:#[2r00000000 2r00000000 \ |
|
244 |
2r00000000 2r00000000 \ |
|
245 |
2r01111111 2r11000000 \ |
|
246 |
2r00111111 2r10000000 \ |
|
247 |
2r00111111 2r10000000 \ |
|
248 |
2r00011111 2r00000000 \ |
|
249 |
2r00011111 2r00000000 \ |
|
250 |
2r00001110 2r00000000 \ |
|
251 |
2r00001110 2r00000000 \ |
|
252 |
2r00000100 2r00000000 \ |
|
253 |
2r00000100 2r00000000 \ |
|
254 |
2r00000000 2r00000000] \ |
|
255 |
pad:8 |
|
256 |
||
1948 | 257 |
arrowButton.leftForm Image extent:12@11 \ |
1624 | 258 |
depth:1 \ |
259 |
bits:#[ \ |
|
260 |
2r00000000 2r00000000 \ |
|
261 |
2r00000000 2r01000000 \ |
|
262 |
2r00000001 2r11000000 \ |
|
263 |
2r00000111 2r11000000 \ |
|
264 |
2r00011111 2r11000000 \ |
|
265 |
2r01111111 2r11000000 \ |
|
266 |
2r00011111 2r11000000 \ |
|
267 |
2r00000111 2r11000000 \ |
|
268 |
2r00000001 2r11000000 \ |
|
269 |
2r00000000 2r11000000 \ |
|
270 |
2r00000000 2r00000000 \ |
|
271 |
] \ |
|
272 |
pad:8 |
|
273 |
||
1948 | 274 |
arrowButton.rightForm Image extent:12@11 \ |
1624 | 275 |
depth:1 \ |
276 |
bits:#[ \ |
|
277 |
2r00000000 2r00000000 \ |
|
278 |
2r00100000 2r00000000 \ |
|
279 |
2r00111000 2r00000000 \ |
|
280 |
2r00111110 2r00000000 \ |
|
281 |
2r00111111 2r10000000 \ |
|
282 |
2r00111111 2r11100000 \ |
|
283 |
2r00111111 2r10000000 \ |
|
284 |
2r00111110 2r00000000 \ |
|
285 |
2r00111000 2r00000000 \ |
|
286 |
2r00100000 2r00000000 \ |
|
287 |
2r00000000 2r00000000 \ |
|
288 |
] \ |
|
289 |
pad:8 |
|
290 |
#endif |