author | Claus Gittinger <cg@exept.de> |
Wed, 19 Mar 1997 11:19:59 +0100 | |
changeset 1456 | 28d61887ade5 |
parent 1451 | 1e52fa5bc93e |
child 1457 | eeae19754e49 |
permissions | -rw-r--r-- |
122 | 1 |
; this style sheet lists all possible style-values |
2 |
; you can not use it directly as a style, but |
|
3 |
; as a template - to copy individual setting |
|
4 |
; into your private style file (if you want to create your own ones) |
|
5 |
; |
|
6 |
; Of course, you can also pick one of the supplied styles, |
|
7 |
; or include an existing style in your new style - changing values |
|
8 |
; as required. (see AEG_sailer.style as an example). |
|
9 |
; |
|
10 |
; After you created the style-file (and have it accessable in the |
|
11 |
; resources directory), you can use this style by adding |
|
12 |
; a line as follows to your 'display.rc' or 'private.rc' file: |
|
13 |
; View defaultStyle:#foo |
|
14 |
; where 'foo' is the name of the style-file name without the '.style' |
|
15 |
; ending. |
|
16 |
; Since it must be a symbol, use quotes around, if non alphanumeric |
|
17 |
; characters are in the name. |
|
18 |
. |
|
19 |
; I.e: |
|
20 |
; View defaultStyle:#motif |
|
21 |
; View defaultStyle:#normal |
|
22 |
; View defaultStyle:#'motif_light' |
|
23 |
; |
|
24 |
; Many of the values here are defaulted to useful values, |
|
25 |
; if not mentioned here - so there is no real need to define |
|
26 |
; all of them for new styles. |
|
27 |
; |
|
28 |
; |
|
1456 | 29 |
; $Header: /cvs/stx/stx/libview/styles/generic.style,v 1.24 1997-03-19 10:19:58 cg Exp $ |
122 | 30 |
|
31 |
; |
|
32 |
; agenda: |
|
33 |
; the following list contains all possible style-values and their |
|
34 |
; default values (i.e. in your style-file you have to include only |
|
35 |
; those differing from the default). |
|
36 |
; |
|
37 |
; The first word is the style-sheet variable name, the rest (separated |
|
38 |
; by one or more spaces) is evaluated as a smalltalk expression and becomes |
|
39 |
; the value of the variable. |
|
40 |
; |
|
41 |
; Lines beginning with ';' are comments. |
|
42 |
; |
|
43 |
; The construct '=foo' means: use the value of the foo-variable described |
|
44 |
; above. |
|
45 |
; If a value is symbolic, the possible values are shown in a comment. |
|
46 |
; |
|
47 |
; Conditional settings are possible, by including these between |
|
48 |
; #if <st-expression> |
|
49 |
; ... |
|
50 |
; #endif |
|
51 |
; For example, colors can be set different for mono vs. color displays. |
|
129 | 52 |
; else constructs are possible too: |
53 |
; #if <st-expression> |
|
54 |
; ... |
|
55 |
; #else |
|
56 |
; ... |
|
57 |
; #endif |
|
58 |
; |
|
59 |
; finally, other files can be included: |
|
60 |
; |
|
61 |
; ... |
|
62 |
; #include 'filename' |
|
63 |
; ... |
|
64 |
; |
|
122 | 65 |
; ---------------------------------------------------------------------------- |
66 |
||
67 |
; if it some type of 3D style |
|
68 |
; (affects default levels, borderWidth and spacing between views etc.) |
|
69 |
; all styles which have 3D effects should set this to true |
|
144 | 70 |
|
309 | 71 |
comment 'not a usable style\\This file is used as reference and documentation.' |
72 |
||
73 |
#if (Language == #german) or:[Language == #de] |
|
74 |
comment 'Dies ist kein nutzbarer Stil\\Diese Datei dient als Referenz und Dokumentation.' |
|
75 |
#endif |
|
144 | 76 |
|
1162 | 77 |
; |
78 |
; if its a 3D style, spacing between components is often different; |
|
79 |
; also, no borders are generated. |
|
80 |
; |
|
122 | 81 |
is3D false |
82 |
||
83 |
; |
|
84 |
; the name of the style (will vanish) |
|
85 |
; |
|
86 |
name #unknown |
|
87 |
||
88 |
; |
|
89 |
; borders - if is3D is true, these are ignored |
|
90 |
; |
|
91 |
borderWidth 0 |
|
92 |
borderColor Color black |
|
93 |
||
94 |
; |
|
95 |
; these are macros used below |
|
96 |
; |
|
97 |
viewGrey Color grey:67 |
|
98 |
lightGrey (Color grey:67) lightened |
|
99 |
darkGrey (Color grey:67) darkened |
|
100 |
fixedFont Font family:'courier' face:'medium' style:'roman' size:12 |
|
101 |
variableFont Font family:'helvetica' face:'medium' style:'roman' size:12 |
|
102 |
||
103 |
; |
|
104 |
; the default font (notice that there are extra variables for |
|
105 |
; labelFont, textFont, menuFont etc.) |
|
106 |
; |
|
107 |
font =fixedFont |
|
108 |
||
109 |
; |
|
110 |
; the default view background |
|
111 |
; |
|
112 |
viewBackground =viewGrey |
|
113 |
||
114 |
; |
|
115 |
; space between widgets |
|
116 |
; |
|
117 |
viewSpacing nil "defaults to 1mm" |
|
118 |
||
119 |
; |
|
120 |
; when drawing shadow and light (3D-effect) |
|
121 |
; ignored if is3D is false |
|
122 |
; |
|
144 | 123 |
shadowColor nil "nil means: use viewBackground darkened" |
124 |
lightColor nil "nil means: use viewBackground lightened" |
|
125 |
halfShadowColor nil "nil means: some default" |
|
126 |
halfLightColor nil "nil means: some default" |
|
122 | 127 |
|
128 |
; |
|
129 |
; how are views highlighted when the focus is stepped |
|
144 | 130 |
; via the keyboard (#FocusNext i.e. Ctrl-CursorRight / #FocusPrevious i.e. Ctrl-CursorLeft) ? |
122 | 131 |
; |
132 |
focusColor Color red "red is the default anyway" |
|
133 |
focusBorderWidth 2 "2 is the default anyway" |
|
134 |
||
135 |
; |
|
136 |
; show a shadow under popup views ? |
|
137 |
; if popupShadowColor is non-nil, shadow is drawn in this |
|
138 |
; solid color; otherwise shadow is drawn by halftoning the pixels below. |
|
139 |
; This may be slow on some X-servers. |
|
140 |
; |
|
141 |
popupShadow false |
|
142 |
popupShadowColor Color black |
|
143 |
popupLevel nil |
|
144 |
popupBorderWidth 1 "2D styles only" |
|
145 |
popupBorderColor Color black "2D styles only" |
|
146 |
; |
|
147 |
; this controls if popups have to be clicked again to go away (if false) |
|
148 |
; or vanish automatically, when the button is released (if true) |
|
149 |
; the default is true |
|
150 |
; |
|
151 |
popupHideOnRelease true |
|
152 |
; UNIMPLEMENTED. popupEdgeStyle nil "or #soft" |
|
153 |
||
154 |
; |
|
155 |
; menus |
|
156 |
; |
|
157 |
menuFont =variableFont |
|
158 |
menuForegroundColor nil "means: use default from superclass" |
|
159 |
menuBackgroundColor nil "means: use default from superclass" |
|
160 |
menuHilightForegroundColor =menuBackgroundColor "if level is ~~ 0, default is menuForegroundColor" |
|
161 |
menuHilightBackgroundColor =menuForegroundColor "if level is ~~ 0, default is menuBackgroundColor" |
|
162 |
menuHilightLevel 0 |
|
163 |
menuSeparatingLineLevel 0 |
|
164 |
menuCheckColor nil "means: use fgColor" |
|
482 | 165 |
menuShowAccelerators true |
122 | 166 |
|
167 |
; |
|
168 |
; pullDownMenu takes menu style if not specified otherwise |
|
169 |
; |
|
170 |
pullDownMenuViewBackground =menuViewBackground |
|
144 | 171 |
pullDownMenuForegroundColor =menuForegroundColor |
172 |
pullDownMenuBackgroundColor =menuBackgroundColor |
|
122 | 173 |
pullDownMenuHilightForegroundColor =menuHilightForegroundColor |
174 |
pullDownMenuHilightBackgroundColor =menuHilightBackgroundColor |
|
175 |
pullDownMenuShadowColor =menuShadowColor |
|
176 |
pullDownMenuLightColor =menuLightColor |
|
177 |
pullDownMenuFont =menuFont |
|
178 |
pullDownMenuEdgeStyle nil "or #soft" |
|
144 | 179 |
pullDownMenuSeparatingLines true |
180 |
pullDownMenuLevel 1 |
|
181 |
pullDownMenuHilightLevel =menuHilightLevel "ifnil: 0" |
|
669 | 182 |
pullDownMenuAutoselectFirst false |
122 | 183 |
|
184 |
; |
|
185 |
;if true, menu stays pulled if button is released (as in motif, mswindows) |
|
186 |
;otherwise, it hides itself on button release. |
|
187 |
; |
|
188 |
pullDownMenuKeepMenu false |
|
157 | 189 |
|
190 |
; |
|
191 |
;if true, pressing button again (in the pull-menus item) hides a shown (kept) |
|
192 |
;menu. Otherwise a press outside of the item-area is required to hide the menu. |
|
193 |
; |
|
144 | 194 |
pullDownMenuToggleKeep false |
122 | 195 |
|
196 |
; |
|
157 | 197 |
;if true, menus topview is raised when an entry is activated |
198 |
; |
|
199 |
pullDownMenuRaiseTop true |
|
200 |
||
201 |
; |
|
193 | 202 |
; popupList |
203 |
; |
|
204 |
popUpListPopPosition nil "or #shifted, or #below" |
|
205 |
||
206 |
; |
|
122 | 207 |
; label defaults |
208 |
; (these are inherited by Button, Toggles etc. if not redefined) |
|
209 |
||
210 |
labelForegroundColor Color black |
|
211 |
labelBackgroundColor =viewBackground |
|
212 |
labelFont =fixedFont |
|
213 |
||
214 |
; |
|
215 |
; buttons, toggles etc. |
|
216 |
; |
|
144 | 217 |
buttonFont nil "nil means: use font" |
218 |
buttonEdgeStyle nil "or #soft" |
|
219 |
buttonBorderWidth nil "nil means: use value of borderWidth" |
|
122 | 220 |
buttonActiveLevel -1 |
221 |
buttonPassiveLevel 1 |
|
144 | 222 |
buttonForegroundColor nil "nil means: use label-value" |
223 |
buttonBackgroundColor nil "nil means: use label-value" |
|
224 |
buttonFont nil "nil means: use label-value" |
|
122 | 225 |
buttonDisabledForegroundColor Color grey |
144 | 226 |
buttonDisabledBackgroundColor nil "nil means: use bgColor" |
227 |
buttonEnteredForegroundColor nil "nil means: use fgColor" |
|
228 |
buttonEnteredBackgroundColor nil "nil means: use bgColor" |
|
229 |
buttonActiveForegroundColor nil "nil means: use fgColor" |
|
230 |
buttonActiveBackgroundColor nil "nil means: use bgColor" |
|
231 |
buttonReturnButtonHasImage true "place a return-icon into defaultButtons" |
|
232 |
buttonReturnButtonHasBorder false "place a border around defaultButtons" |
|
122 | 233 |
|
234 |
; arrow buttons in scrollBars |
|
235 |
; |
|
144 | 236 |
arrowButtonStyle nil "choose one of (#st80 #motif #mswindows nil)" |
237 |
arrowButtonForegroundColor nil "nil means: use buttons default" |
|
238 |
arrowButtonActiveForegroundColor nil "nil means: use buttons default" |
|
239 |
arrowButtonActiveBackgroundColor nil "nil means: use buttons default" |
|
240 |
arrowButtonUpFormFile 'ScrollUp.xbm' |
|
241 |
arrowButtonDownFormFile 'ScrollDn.xbm' |
|
242 |
arrowButtonLeftFormFile 'ScrollLt.xbm' |
|
243 |
arrowButtonRightFormFile 'ScrollRt.xbm' |
|
244 |
arrowButtonActiveLevel nil "nil means: use buttons default" |
|
245 |
arrowButtonPassiveLevel nil "nil means: use buttons default" |
|
122 | 246 |
|
247 |
; |
|
248 |
; show a little lamp (a la IRIS) in toggles ? |
|
249 |
; |
|
250 |
toggleShowLamp false "false means: no lamp" |
|
251 |
toggleLampColor Color yellow "ignored if above is false" |
|
252 |
||
253 |
; |
|
254 |
; the color of checkmarks (normally black; IRIS shows them red) |
|
255 |
; |
|
256 |
checkToggleCheckColor Color black |
|
144 | 257 |
checkToggleBitmapFile 'CheckOn.xbm' |
258 |
checkToggleStyle #cross "or #check only taken if file is nil" |
|
152 | 259 |
checkToggleActiveBackgroundColor nil "means: use buttons default" |
260 |
checkToggleActiveLevel nil "means: use buttons default" |
|
261 |
checkTogglePassiveLevel nil "means: use buttons default" |
|
262 |
||
122 | 263 |
|
264 |
; |
|
265 |
; text view backgrounds - this is not the same as |
|
266 |
; textBackgroundColor (although it looks better if it is ...) |
|
267 |
; |
|
268 |
textViewBackground Color white |
|
269 |
||
270 |
; |
|
271 |
; texts in ListView, TextView, EditTextView etc. |
|
272 |
; |
|
273 |
textForegroundColor Color black |
|
274 |
textBackgroundColor Color white |
|
275 |
textFont =fixedFont |
|
276 |
||
277 |
textCursorForegroundColor Color white |
|
278 |
#if Display hasColors |
|
279 |
textCursorBackgroundColor Color red |
|
280 |
#else |
|
281 |
textCursorBackgroundColor Color black |
|
282 |
#endif |
|
283 |
textCursorType #block "choose one of (#block #ibeam #caret #solidCaret)" |
|
530 | 284 |
textWordSelectCatchesBlanks false |
122 | 285 |
|
286 |
; |
|
287 |
; text view selections |
|
288 |
; |
|
289 |
textSelectionForegroundColor =textBackgroundColor |
|
290 |
#if Display hasColors |
|
291 |
textSelectionBackgroundColor Color green |
|
292 |
#else |
|
293 |
# if Display hasGreyscales |
|
294 |
textSelectionBackgroundColor Color grey |
|
295 |
# else |
|
296 |
textSelectionBackgroundColor =textForegroundColor |
|
297 |
# endif |
|
298 |
#endif |
|
299 |
||
300 |
; |
|
301 |
; text in editfields |
|
302 |
; |
|
303 |
editFieldForegroundColor Color black |
|
304 |
editFieldBackgroundColor Color white |
|
305 |
editFieldSelectionForegroundColor Color white |
|
306 |
editFieldSelectionBackgroundColor Color black |
|
307 |
editFieldFont =fixedFont |
|
308 |
||
309 |
; |
|
310 |
; special values for the transcript |
|
311 |
; |
|
312 |
transcriptForegroundColor Color black |
|
313 |
transcriptBackgroundColor Color white |
|
314 |
transcriptCursorForegroundColor =transcriptBackgroundColor |
|
315 |
transcriptCursorBackgroundColor =transcriptForegroundColor |
|
316 |
||
317 |
; |
|
318 |
; highlighting errors in codeviews |
|
319 |
; |
|
320 |
codeErrorSelectionForegroundColor =textSelectionForegroundColor |
|
321 |
#if Display hasColors |
|
322 |
codeErrorSelectionBackgroundColor Color red |
|
323 |
#else |
|
324 |
codeErrorSelectionBackgroundColor =textSelectionBackgroundColor |
|
325 |
#endif |
|
326 |
||
327 |
; |
|
328 |
; selection-in-list |
|
329 |
; |
|
1106 | 330 |
selectionMultiSelectionModifier nil "means: #Shift; alternaitve: #Control" |
122 | 331 |
selectionForegroundColor nil "means: use text-backgroundColor" |
332 |
selectionBackgroundColor nil "means: use viewBackground" |
|
333 |
selectionHilightForegroundColor nil "means: use backgroundColor" |
|
334 |
selectionHilightBackgroundColor nil "means: use foregroundColor" |
|
335 |
selectionHilightFrameColor nil "means: no frame around selection" |
|
336 |
selectionHilightLevel 0 |
|
534
ae5caa947d14
better motif-style selectionInListView highlighting
Claus Gittinger <cg@exept.de>
parents:
530
diff
changeset
|
337 |
selectionHilightStyle nil "means: depend on styles name" |
122 | 338 |
selectionFont nil "means: use textFont" |
339 |
selectionDisabledForegroundColor nil "means: use grey" |
|
340 |
;NOTIMPL selectionRightArrowStyle |
|
341 |
selectionRightArrowLevel 1 |
|
342 |
||
343 |
; |
|
344 |
; variable panels |
|
345 |
; |
|
346 |
variablePanelShowHandle true |
|
347 |
variablePanelHandlePosition #right "#center #left" |
|
133 | 348 |
variablePanelHandleStyle nil "nil means: as appropriate per style-name; i.e. #next., #motif ..." |
1423 | 349 |
; in addition to the known ones, |
1456 | 350 |
; #none, #iris, #line, #motif or #full are also allowed |
122 | 351 |
variablePanelHandleColor Black "only for #iris, #normal and #mswindows" |
224 | 352 |
variablePanelHandleLevel 2 "only if not #line" |
353 |
||
1451 | 354 |
; OBSOLETE: variablePanelTrackingLine false "false means: track bar; true means: only track line" |
355 |
variablePanelTrackingStyle #solidRectangle "/ means: rectangle track. |
|
356 |
"/ Also possible:or: #solidLine or: #dashedLine |
|
133 | 357 |
variablePanelSeparatingLine false "true means: draw an edged line in addition to handle" |
122 | 358 |
|
1441 | 359 |
scrolledViewLevel -1 "level of scrolled view. -1 for 3D styles; 0 for 2D styles" |
360 |
scrollableViewLevel nil "nil: as specified elsewhere; only 0 for openWin" |
|
361 |
scrolledViewBorderWidth nil "nil: slave views own preferrence; 1 in openWin" |
|
362 |
scrolledViewMargin =viewSpacing // 2 "outer margin around scrolledView" |
|
363 |
scrollBarSpacing =viewSpacing // 2 "space between scrolledview and scrollBar" |
|
1447 | 364 |
scrollBarHiding false "/ automatic hiding of useless scrollBars |
1440 | 365 |
|
366 |
||
122 | 367 |
; |
368 |
; scrollbar position in scrolled views |
|
369 |
; |
|
144 | 370 |
scrollBarPosition #left "or: #right" |
122 | 371 |
|
372 |
; |
|
373 |
; scrollbars |
|
374 |
; |
|
1438 | 375 |
scrollBarButtonPositions #around "or: #top #bottom" |
376 |
scrollBarLevel 0 "level of scrollBar" |
|
377 |
scrollBarElementSpacing 0 "spacing betwen buttons & thumb" |
|
378 |
scrollBarDisableButtons false "shall we disable buttons if appropriate" |
|
1440 | 379 |
scrollBarNeverMini false |
122 | 380 |
|
381 |
; |
|
521 | 382 |
; scrollers (also used in scrollBars & also affects sliders) |
122 | 383 |
; |
384 |
scrollerViewBackground Color grey |
|
385 |
scrollerThumbColor Color white |
|
521 | 386 |
scrollerThumbEnteredColor =scrollerThumbColor |
122 | 387 |
scrollerThumbFrameColor Color black "nil means no frame" |
388 |
scrollerThumbLevel 0 |
|
530 | 389 |
scrollerThumbActiveLevel =scrollerThumbLevel |
122 | 390 |
scrollerThumbInset 0 |
391 |
scrollerThumbFixHeight false |
|
392 |
scrollerThumbEdgeStyle nil "or #soft" |
|
393 |
scrollerLevel 0 |
|
394 |
scrollerBorderWidth =borderWidth |
|
395 |
scrollerNTallyMarks 0 |
|
396 |
scrollerTallyLevel 0 |
|
397 |
scrollerGhostColor nil "nil means - no ghosting" |
|
398 |
scrollerGhostLevel 0 "only used if above color is nonNil" |
|
399 |
||
400 |
; |
|
401 |
; sliders may have different tally definition than scrollers |
|
402 |
; |
|
403 |
sliderNTallyMarks 1 |
|
404 |
sliderTallyLevel -1 |
|
144 | 405 |
sliderLevel nil "nil means: means inherit from scroller" |
122 | 406 |
|
407 |
; |
|
408 |
; framed boxes |
|
409 |
; |
|
410 |
framedBoxForegroundColor Color black |
|
411 |
framedBoxLabelPosition #topCenter "#topLeft #topRight #bottomLeft #bottomCenter #bottomRight" |
|
412 |
||
144 | 413 |
rulerForegroundColor nil "nil means: use foregroundColor or Black or White" |
414 |
rulerBackgroundColor nil "nil means: use viewBackground" |
|
415 |
rulerMetric nil "nil means: use #mm for german, #inch for all others" |
|
122 | 416 |
|
417 |
; |
|
418 |
; dialog boxes |
|
419 |
; |
|
420 |
||
421 |
; |
|
422 |
; information-box |
|
423 |
; |
|
424 |
informationBoxIcon (Image fromFile:'bitmaps/Information.xbm') |
|
425 |
||
426 |
; |
|
427 |
; warnbox |
|
428 |
; |
|
429 |
warnBoxIcon (Image fromFile:'bitmaps/Information.xbm') |
|
430 |
||
431 |
; |
|
432 |
; yes/no requests |
|
433 |
; |
|
434 |
requestBoxIcon (Image fromFile:'bitmaps/Request.xbm') |
|
173 | 435 |
|
436 |
||
437 |
htmlBackgroundColor Color grey:80 |
|
438 |
htmlAnchorForegroundColor Color blue darkened |
|
439 |
htmlActiveAnchorForegroundColor Color red |
|
440 |
htmlActiveAnchorBackgroundColor =htmlBackgroundColor |
|
441 |
htmlVisitedAnchorForegroundColor Color red:30 green:0 blue:80 |
|
442 |
htmlExampleAnchorForegroundColor Color red:40 green:0 blue:0 |
|
443 |
htmlAnchorUnderlines false |