author | Claus Gittinger <cg@exept.de> |
Sun, 18 Apr 1999 00:01:39 +0200 | |
changeset 2562 | 9628fa11ba4a |
parent 2539 | 05c647d68efe |
child 2581 | fd2db32b26b8 |
permissions | -rw-r--r-- |
199 | 1 |
; |
309 | 2 |
; common motif stuff (not a style, but included by all motif style variations) |
199 | 3 |
; |
4 |
; |
|
2562 | 5 |
; $Header: /cvs/stx/stx/libview/styles/motif.common,v 1.23 1999-04-17 22:01:37 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 |
||
2539
05c647d68efe
smaller fonts on small displays
Claus Gittinger <cg@exept.de>
parents:
2486
diff
changeset
|
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 |
popupBorderWidth 1 |
|
27 |
popupHideOnRelease false |
|
28 |
||
29 |
focusColor Color black |
|
2562 | 30 |
focus.explicitWithButtonPress true |
199 | 31 |
; focusColor Color yellow |
32 |
||
1924 | 33 |
scrollBar.position #right |
34 |
scrollBar.buttonPositions #around |
|
35 |
scrollBar.level -2 |
|
36 |
scrollBar.elementSpacing 0 |
|
37 |
scrollBar.disableButtons true |
|
38 |
; scrollBar.hiding true |
|
199 | 39 |
|
40 |
#if Display 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 |
199 | 61 |
|
1924 | 62 |
framedBox.labelPosition #topLeft |
199 | 63 |
|
1948 | 64 |
label.foregroundColor Color black |
199 | 65 |
|
1948 | 66 |
button.activeLevel -2 |
67 |
button.passiveLevel 2 |
|
68 |
button.returnButtonHasBorder true |
|
199 | 69 |
|
1948 | 70 |
button.activeBackgroundColor =mediumColor |
71 |
button.activeForegroundColor Color black |
|
72 |
button.disabledForegroundColor =shadowColor |
|
199 | 73 |
|
74 |
#if Display hasGreyscales not |
|
1948 | 75 |
button.activeBackgroundColor Color grey:80 |
199 | 76 |
#endif |
77 |
||
1948 | 78 |
arrowButton.style #motif |
79 |
arrowButton.activeLevel 0 |
|
80 |
arrowButton.passiveLevel 0 |
|
199 | 81 |
|
1948 | 82 |
arrowButton.foregroundColor =viewGrey |
83 |
arrowButton.backgroundColor =mediumColor |
|
84 |
arrowButton.activeForegroundColor =viewGrey |
|
85 |
arrowButton.activeBackgroundColor =viewGrey |
|
86 |
arrowButton.disabledForegroundColor =viewGrey |
|
199 | 87 |
|
1951 | 88 |
radioButton.style #motif |
89 |
||
1948 | 90 |
editField.backgroundColor =mediumColor |
199 | 91 |
|
1948 | 92 |
menu.hilightLevel 2 |
93 |
menu.separatingLineInset 0 |
|
94 |
menu.viewBackgroundColor =viewGrey |
|
95 |
menu.disabledForegroundColor =shadowColor |
|
199 | 96 |
|
1948 | 97 |
pullDownMenu.keepMenu true |
98 |
pullDownMenu.level 1 |
|
99 |
pullDownMenu.hilightLevel 2 |
|
199 | 100 |
#if Display hasGreyscales not |
1948 | 101 |
pullDownMenu.hilightForegroundColor Color white |
102 |
pullDownMenu.hilightBackgroundColor Color black |
|
199 | 103 |
#endif |
1948 | 104 |
pullDownMenu.autoselectFirst true |
199 | 105 |
|
1948 | 106 |
#selection.multiSelectionModifier #Control |
107 |
#selection.rightArrowLevel -1 |
|
108 |
selection.rightArrowLevel 2 |
|
109 |
selection.lineSpacing 4 |
|
110 |
selection.foregroundColor Color black |
|
111 |
selection.hilightBackgroundColor Color black |
|
112 |
selection.hilightStyle #motif |
|
113 |
selection.disabledForegroundColor =shadowColor |
|
199 | 114 |
|
1360 | 115 |
#textCursorType #caret |
1948 | 116 |
textCursor.type #ibeam |
117 |
textCursor.noFocusForegroundColor Color grey |
|
199 | 118 |
|
1948 | 119 |
activeHelp.backgroundColor Color yellow lightened |
120 |
activeHelp.borderWidth 2 |
|
199 | 121 |
|
1948 | 122 |
ruler.foregroundColor Color black |
123 |
ruler.backgroundColor =viewGrey |
|
199 | 124 |
|
1620
49812898bfe2
html defs for monochrome displays
Claus Gittinger <cg@exept.de>
parents:
1504
diff
changeset
|
125 |
#if Display hasGrayscales not |
1948 | 126 |
html.anchorUnderline true |
127 |
html.anchorForegroundColor Color black |
|
128 |
html.backgroundColor Color white |
|
129 |
html.activeAnchorForegroundColor Color black |
|
130 |
html.activeAnchorBackgroundColor =htmlBackgroundColor |
|
131 |
html.visitedAnchorForegroundColor Color black |
|
132 |
html.exampleAnchorForegroundColor Color black |
|
1620
49812898bfe2
html defs for monochrome displays
Claus Gittinger <cg@exept.de>
parents:
1504
diff
changeset
|
133 |
#endif |
199 | 134 |
|
2486
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
135 |
; |
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
136 |
; 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
|
137 |
; some may be used to ok being on the left ... |
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
138 |
dialogBox.okAtLeft true |
a310c1c75516
ok is on the left with motif style.
Claus Gittinger <cg@exept.de>
parents:
2468
diff
changeset
|
139 |
|
1948 | 140 |
infoBox.separator true |
141 |
infoBox.iconFile 'bitmaps/Information_motif.xbm' |
|
142 |
warningBox.iconFile 'bitmaps/Warning_motif.xbm' |
|
143 |
requestBox.iconFile 'bitmaps/Request_motif.xbm' |
|
199 | 144 |
|
145 |
||
1624 | 146 |
#if Display hasGrayscales |
1948 | 147 |
arrowButton.upForm Image extent:11@12 \ |
199 | 148 |
depth:2 \ |
149 |
bits:#[4r0000 4r0100 4r0000 \ |
|
150 |
4r0000 4r1120 4r0000 \ |
|
151 |
4r0000 4r1120 4r0000 \ |
|
152 |
4r0001 4r1322 4r0000 \ |
|
153 |
4r0001 4r1322 4r0000 \ |
|
154 |
4r0011 4r3332 4r2000 \ |
|
155 |
4r0011 4r3332 4r2000 \ |
|
156 |
4r0113 4r3333 4r2200 \ |
|
157 |
4r0113 4r3333 4r2200 \ |
|
158 |
4r1122 4r2222 4r2220 \ |
|
159 |
4r1222 4r2222 4r2220 \ |
|
160 |
4r0000 4r0000 4r0000] \ |
|
161 |
pad:8 |
|
162 |
||
1948 | 163 |
arrowButton.downForm Image extent:11@12 \ |
199 | 164 |
depth:2 \ |
165 |
bits:#[ \ |
|
166 |
4r0000 4r0000 4r0000 \ |
|
167 |
4r1111 4r1111 4r1110 \ |
|
168 |
4r1111 4r1111 4r1220 \ |
|
169 |
4r0113 4r3333 4r2200 \ |
|
170 |
4r0113 4r3333 4r2200 \ |
|
171 |
4r0011 4r3332 4r2000 \ |
|
172 |
4r0011 4r3332 4r2000 \ |
|
173 |
4r0001 4r1322 4r0000 \ |
|
174 |
4r0001 4r1322 4r0000 \ |
|
175 |
4r0000 4r1220 4r0000 \ |
|
176 |
4r0000 4r1220 4r0000 \ |
|
177 |
4r0000 4r0200 4r0000 \ |
|
178 |
] \ |
|
179 |
pad:8 |
|
180 |
||
1948 | 181 |
arrowButton.leftForm Image extent:12@11 \ |
199 | 182 |
depth:2 \ |
183 |
bits:#[ \ |
|
184 |
4r0000 4r0000 4r0110 \ |
|
185 |
4r0000 4r0001 4r1120 \ |
|
186 |
4r0000 4r0111 4r1220 \ |
|
187 |
4r0001 4r1113 4r3220 \ |
|
188 |
4r0111 4r1333 4r3220 \ |
|
189 |
4r1113 4r3333 4r3220 \ |
|
190 |
4r0222 4r2333 4r3220 \ |
|
191 |
4r0002 4r2223 4r3220 \ |
|
192 |
4r0000 4r0222 4r2220 \ |
|
193 |
4r0000 4r0002 4r2220 \ |
|
194 |
4r0000 4r0000 4r0220 \ |
|
195 |
] \ |
|
196 |
pad:8 |
|
197 |
||
1948 | 198 |
arrowButton.rightForm Image extent:12@11 \ |
199 | 199 |
depth:2 \ |
200 |
bits:#[ \ |
|
201 |
4r0110 4r0000 4r0000 \ |
|
202 |
4r0111 4r1000 4r0000 \ |
|
203 |
4r0111 4r1110 4r0000 \ |
|
204 |
4r0113 4r3111 4r1000 \ |
|
205 |
4r0113 4r3331 4r1110 \ |
|
206 |
4r0113 4r3333 4r3222 \ |
|
207 |
4r0113 4r3332 4r2220 \ |
|
208 |
4r0113 4r3222 4r2000 \ |
|
209 |
4r0112 4r2220 4r0000 \ |
|
210 |
4r0122 4r2000 4r0000 \ |
|
211 |
4r0120 4r0000 4r0000 \ |
|
212 |
] \ |
|
213 |
pad:8 |
|
1624 | 214 |
#else |
1948 | 215 |
arrowButton.upForm Image extent:11@12 \ |
1624 | 216 |
depth:1 \ |
217 |
bits:#[2r00000000 2r00000000 \ |
|
218 |
2r00000100 2r00000000 \ |
|
219 |
2r00000100 2r00000000 \ |
|
220 |
2r00001110 2r00000000 \ |
|
221 |
2r00001110 2r00000000 \ |
|
222 |
2r00011111 2r00000000 \ |
|
223 |
2r00011111 2r00000000 \ |
|
224 |
2r00111111 2r10000000 \ |
|
225 |
2r00111111 2r10000000 \ |
|
226 |
2r01111111 2r11000000 \ |
|
227 |
2r00000000 2r00000000 \ |
|
228 |
2r00000000 2r00000000] \ |
|
229 |
pad:8 |
|
230 |
||
1948 | 231 |
arrowButton.downForm Image extent:11@12 \ |
1624 | 232 |
depth:1 \ |
233 |
bits:#[2r00000000 2r00000000 \ |
|
234 |
2r00000000 2r00000000 \ |
|
235 |
2r01111111 2r11000000 \ |
|
236 |
2r00111111 2r10000000 \ |
|
237 |
2r00111111 2r10000000 \ |
|
238 |
2r00011111 2r00000000 \ |
|
239 |
2r00011111 2r00000000 \ |
|
240 |
2r00001110 2r00000000 \ |
|
241 |
2r00001110 2r00000000 \ |
|
242 |
2r00000100 2r00000000 \ |
|
243 |
2r00000100 2r00000000 \ |
|
244 |
2r00000000 2r00000000] \ |
|
245 |
pad:8 |
|
246 |
||
1948 | 247 |
arrowButton.leftForm Image extent:12@11 \ |
1624 | 248 |
depth:1 \ |
249 |
bits:#[ \ |
|
250 |
2r00000000 2r00000000 \ |
|
251 |
2r00000000 2r01000000 \ |
|
252 |
2r00000001 2r11000000 \ |
|
253 |
2r00000111 2r11000000 \ |
|
254 |
2r00011111 2r11000000 \ |
|
255 |
2r01111111 2r11000000 \ |
|
256 |
2r00011111 2r11000000 \ |
|
257 |
2r00000111 2r11000000 \ |
|
258 |
2r00000001 2r11000000 \ |
|
259 |
2r00000000 2r11000000 \ |
|
260 |
2r00000000 2r00000000 \ |
|
261 |
] \ |
|
262 |
pad:8 |
|
263 |
||
1948 | 264 |
arrowButton.rightForm Image extent:12@11 \ |
1624 | 265 |
depth:1 \ |
266 |
bits:#[ \ |
|
267 |
2r00000000 2r00000000 \ |
|
268 |
2r00100000 2r00000000 \ |
|
269 |
2r00111000 2r00000000 \ |
|
270 |
2r00111110 2r00000000 \ |
|
271 |
2r00111111 2r10000000 \ |
|
272 |
2r00111111 2r11100000 \ |
|
273 |
2r00111111 2r10000000 \ |
|
274 |
2r00111110 2r00000000 \ |
|
275 |
2r00111000 2r00000000 \ |
|
276 |
2r00100000 2r00000000 \ |
|
277 |
2r00000000 2r00000000 \ |
|
278 |
] \ |
|
279 |
pad:8 |
|
280 |
#endif |