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 |
;
|
152
|
29 |
; $Header: /cvs/stx/stx/libview/styles/generic.style,v 1.5 1995-06-06 04:11:07 claus 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 |
|
|
71 |
comment 'not a usable style\\use as a reference for new styles'
|
|
72 |
|
|
73 |
|
122
|
74 |
is3D false
|
|
75 |
|
|
76 |
;
|
|
77 |
; the name of the style (will vanish)
|
|
78 |
;
|
|
79 |
name #unknown
|
|
80 |
|
|
81 |
;
|
|
82 |
; borders - if is3D is true, these are ignored
|
|
83 |
;
|
|
84 |
borderWidth 0
|
|
85 |
borderColor Color black
|
|
86 |
|
|
87 |
;
|
|
88 |
; these are macros used below
|
|
89 |
;
|
|
90 |
viewGrey Color grey:67
|
|
91 |
lightGrey (Color grey:67) lightened
|
|
92 |
darkGrey (Color grey:67) darkened
|
|
93 |
fixedFont Font family:'courier' face:'medium' style:'roman' size:12
|
|
94 |
variableFont Font family:'helvetica' face:'medium' style:'roman' size:12
|
|
95 |
|
|
96 |
;
|
|
97 |
; the default font (notice that there are extra variables for
|
|
98 |
; labelFont, textFont, menuFont etc.)
|
|
99 |
;
|
|
100 |
font =fixedFont
|
|
101 |
|
|
102 |
;
|
|
103 |
; the default view background
|
|
104 |
;
|
|
105 |
viewBackground =viewGrey
|
|
106 |
|
|
107 |
;
|
|
108 |
; space between widgets
|
|
109 |
;
|
|
110 |
viewSpacing nil "defaults to 1mm"
|
|
111 |
|
|
112 |
;
|
|
113 |
; when drawing shadow and light (3D-effect)
|
|
114 |
; ignored if is3D is false
|
|
115 |
;
|
144
|
116 |
shadowColor nil "nil means: use viewBackground darkened"
|
|
117 |
lightColor nil "nil means: use viewBackground lightened"
|
|
118 |
halfShadowColor nil "nil means: some default"
|
|
119 |
halfLightColor nil "nil means: some default"
|
122
|
120 |
|
|
121 |
;
|
|
122 |
; how are views highlighted when the focus is stepped
|
144
|
123 |
; via the keyboard (#FocusNext i.e. Ctrl-CursorRight / #FocusPrevious i.e. Ctrl-CursorLeft) ?
|
122
|
124 |
;
|
|
125 |
focusColor Color red "red is the default anyway"
|
|
126 |
focusBorderWidth 2 "2 is the default anyway"
|
|
127 |
|
|
128 |
;
|
|
129 |
; show a shadow under popup views ?
|
|
130 |
; if popupShadowColor is non-nil, shadow is drawn in this
|
|
131 |
; solid color; otherwise shadow is drawn by halftoning the pixels below.
|
|
132 |
; This may be slow on some X-servers.
|
|
133 |
;
|
|
134 |
popupShadow false
|
|
135 |
popupShadowColor Color black
|
|
136 |
popupLevel nil
|
|
137 |
popupBorderWidth 1 "2D styles only"
|
|
138 |
popupBorderColor Color black "2D styles only"
|
|
139 |
;
|
|
140 |
; this controls if popups have to be clicked again to go away (if false)
|
|
141 |
; or vanish automatically, when the button is released (if true)
|
|
142 |
; the default is true
|
|
143 |
;
|
|
144 |
popupHideOnRelease true
|
|
145 |
; UNIMPLEMENTED. popupEdgeStyle nil "or #soft"
|
|
146 |
|
|
147 |
;
|
|
148 |
; menus
|
|
149 |
;
|
|
150 |
menuFont =variableFont
|
|
151 |
menuForegroundColor nil "means: use default from superclass"
|
|
152 |
menuBackgroundColor nil "means: use default from superclass"
|
|
153 |
menuHilightForegroundColor =menuBackgroundColor "if level is ~~ 0, default is menuForegroundColor"
|
|
154 |
menuHilightBackgroundColor =menuForegroundColor "if level is ~~ 0, default is menuBackgroundColor"
|
|
155 |
menuHilightLevel 0
|
|
156 |
menuSeparatingLineLevel 0
|
|
157 |
menuCheckColor nil "means: use fgColor"
|
|
158 |
|
|
159 |
;
|
|
160 |
; pullDownMenu takes menu style if not specified otherwise
|
|
161 |
;
|
|
162 |
pullDownMenuViewBackground =menuViewBackground
|
144
|
163 |
pullDownMenuForegroundColor =menuForegroundColor
|
|
164 |
pullDownMenuBackgroundColor =menuBackgroundColor
|
122
|
165 |
pullDownMenuHilightForegroundColor =menuHilightForegroundColor
|
|
166 |
pullDownMenuHilightBackgroundColor =menuHilightBackgroundColor
|
|
167 |
pullDownMenuShadowColor =menuShadowColor
|
|
168 |
pullDownMenuLightColor =menuLightColor
|
|
169 |
pullDownMenuFont =menuFont
|
|
170 |
pullDownMenuEdgeStyle nil "or #soft"
|
144
|
171 |
pullDownMenuSeparatingLines true
|
|
172 |
pullDownMenuLevel 1
|
|
173 |
pullDownMenuHilightLevel =menuHilightLevel "ifnil: 0"
|
122
|
174 |
|
|
175 |
;
|
|
176 |
;if true, menu stays pulled if button is released (as in motif, mswindows)
|
|
177 |
;otherwise, it hides itself on button release.
|
|
178 |
;
|
|
179 |
pullDownMenuKeepMenu false
|
144
|
180 |
pullDownMenuToggleKeep false
|
122
|
181 |
|
|
182 |
;
|
|
183 |
; label defaults
|
|
184 |
; (these are inherited by Button, Toggles etc. if not redefined)
|
|
185 |
|
|
186 |
labelForegroundColor Color black
|
|
187 |
labelBackgroundColor =viewBackground
|
|
188 |
labelFont =fixedFont
|
|
189 |
|
|
190 |
;
|
|
191 |
; buttons, toggles etc.
|
|
192 |
;
|
144
|
193 |
buttonFont nil "nil means: use font"
|
|
194 |
buttonEdgeStyle nil "or #soft"
|
|
195 |
buttonBorderWidth nil "nil means: use value of borderWidth"
|
122
|
196 |
buttonActiveLevel -1
|
|
197 |
buttonPassiveLevel 1
|
144
|
198 |
buttonForegroundColor nil "nil means: use label-value"
|
|
199 |
buttonBackgroundColor nil "nil means: use label-value"
|
|
200 |
buttonFont nil "nil means: use label-value"
|
122
|
201 |
buttonDisabledForegroundColor Color grey
|
144
|
202 |
buttonDisabledBackgroundColor nil "nil means: use bgColor"
|
|
203 |
buttonEnteredForegroundColor nil "nil means: use fgColor"
|
|
204 |
buttonEnteredBackgroundColor nil "nil means: use bgColor"
|
|
205 |
buttonActiveForegroundColor nil "nil means: use fgColor"
|
|
206 |
buttonActiveBackgroundColor nil "nil means: use bgColor"
|
|
207 |
buttonReturnButtonHasImage true "place a return-icon into defaultButtons"
|
|
208 |
buttonReturnButtonHasBorder false "place a border around defaultButtons"
|
122
|
209 |
|
|
210 |
; arrow buttons in scrollBars
|
|
211 |
;
|
144
|
212 |
arrowButtonStyle nil "choose one of (#st80 #motif #mswindows nil)"
|
|
213 |
arrowButtonForegroundColor nil "nil means: use buttons default"
|
|
214 |
arrowButtonActiveForegroundColor nil "nil means: use buttons default"
|
|
215 |
arrowButtonActiveBackgroundColor nil "nil means: use buttons default"
|
|
216 |
arrowButtonUpFormFile 'ScrollUp.xbm'
|
|
217 |
arrowButtonDownFormFile 'ScrollDn.xbm'
|
|
218 |
arrowButtonLeftFormFile 'ScrollLt.xbm'
|
|
219 |
arrowButtonRightFormFile 'ScrollRt.xbm'
|
|
220 |
arrowButtonActiveLevel nil "nil means: use buttons default"
|
|
221 |
arrowButtonPassiveLevel nil "nil means: use buttons default"
|
122
|
222 |
|
|
223 |
;
|
|
224 |
; show a little lamp (a la IRIS) in toggles ?
|
|
225 |
;
|
|
226 |
toggleShowLamp false "false means: no lamp"
|
|
227 |
toggleLampColor Color yellow "ignored if above is false"
|
|
228 |
|
|
229 |
;
|
|
230 |
; the color of checkmarks (normally black; IRIS shows them red)
|
|
231 |
;
|
|
232 |
checkToggleCheckColor Color black
|
144
|
233 |
checkToggleBitmapFile 'CheckOn.xbm'
|
|
234 |
checkToggleStyle #cross "or #check only taken if file is nil"
|
152
|
235 |
checkToggleActiveBackgroundColor nil "means: use buttons default"
|
|
236 |
checkToggleActiveLevel nil "means: use buttons default"
|
|
237 |
checkTogglePassiveLevel nil "means: use buttons default"
|
|
238 |
|
122
|
239 |
|
|
240 |
;
|
|
241 |
; text view backgrounds - this is not the same as
|
|
242 |
; textBackgroundColor (although it looks better if it is ...)
|
|
243 |
;
|
|
244 |
textViewBackground Color white
|
|
245 |
|
|
246 |
;
|
|
247 |
; texts in ListView, TextView, EditTextView etc.
|
|
248 |
;
|
|
249 |
textForegroundColor Color black
|
|
250 |
textBackgroundColor Color white
|
|
251 |
textFont =fixedFont
|
|
252 |
|
|
253 |
textCursorForegroundColor Color white
|
|
254 |
#if Display hasColors
|
|
255 |
textCursorBackgroundColor Color red
|
|
256 |
#else
|
|
257 |
textCursorBackgroundColor Color black
|
|
258 |
#endif
|
|
259 |
textCursorType #block "choose one of (#block #ibeam #caret #solidCaret)"
|
|
260 |
|
|
261 |
;
|
|
262 |
; text view selections
|
|
263 |
;
|
|
264 |
textSelectionForegroundColor =textBackgroundColor
|
|
265 |
#if Display hasColors
|
|
266 |
textSelectionBackgroundColor Color green
|
|
267 |
#else
|
|
268 |
# if Display hasGreyscales
|
|
269 |
textSelectionBackgroundColor Color grey
|
|
270 |
# else
|
|
271 |
textSelectionBackgroundColor =textForegroundColor
|
|
272 |
# endif
|
|
273 |
#endif
|
|
274 |
|
|
275 |
;
|
|
276 |
; text in editfields
|
|
277 |
;
|
|
278 |
editFieldForegroundColor Color black
|
|
279 |
editFieldBackgroundColor Color white
|
|
280 |
editFieldSelectionForegroundColor Color white
|
|
281 |
editFieldSelectionBackgroundColor Color black
|
|
282 |
editFieldFont =fixedFont
|
|
283 |
|
|
284 |
;
|
|
285 |
; special values for the transcript
|
|
286 |
;
|
|
287 |
transcriptForegroundColor Color black
|
|
288 |
transcriptBackgroundColor Color white
|
|
289 |
transcriptCursorForegroundColor =transcriptBackgroundColor
|
|
290 |
transcriptCursorBackgroundColor =transcriptForegroundColor
|
|
291 |
|
|
292 |
;
|
|
293 |
; highlighting errors in codeviews
|
|
294 |
;
|
|
295 |
codeErrorSelectionForegroundColor =textSelectionForegroundColor
|
|
296 |
#if Display hasColors
|
|
297 |
codeErrorSelectionBackgroundColor Color red
|
|
298 |
#else
|
|
299 |
codeErrorSelectionBackgroundColor =textSelectionBackgroundColor
|
|
300 |
#endif
|
|
301 |
|
|
302 |
;
|
|
303 |
; selection-in-list
|
|
304 |
;
|
|
305 |
selectionForegroundColor nil "means: use text-backgroundColor"
|
|
306 |
selectionBackgroundColor nil "means: use viewBackground"
|
|
307 |
selectionHilightForegroundColor nil "means: use backgroundColor"
|
|
308 |
selectionHilightBackgroundColor nil "means: use foregroundColor"
|
|
309 |
selectionHilightFrameColor nil "means: no frame around selection"
|
|
310 |
selectionHilightLevel 0
|
|
311 |
selectionFont nil "means: use textFont"
|
|
312 |
selectionDisabledForegroundColor nil "means: use grey"
|
|
313 |
;NOTIMPL selectionRightArrowStyle
|
|
314 |
selectionRightArrowLevel 1
|
|
315 |
|
|
316 |
;
|
|
317 |
; variable panels
|
|
318 |
;
|
|
319 |
variablePanelShowHandle true
|
|
320 |
variablePanelHandlePosition #right "#center #left"
|
133
|
321 |
variablePanelHandleStyle nil "nil means: as appropriate per style-name; i.e. #next., #motif ..."
|
122
|
322 |
variablePanelHandleColor Black "only for #iris, #normal and #mswindows"
|
133
|
323 |
variablePanelTrackingLine false "false means: track bar; true means: only track line"
|
|
324 |
variablePanelSeparatingLine false "true means: draw an edged line in addition to handle"
|
122
|
325 |
|
|
326 |
;
|
|
327 |
; scrollbar position in scrolled views
|
|
328 |
;
|
144
|
329 |
scrollBarPosition #left "or: #right"
|
122
|
330 |
|
|
331 |
;
|
|
332 |
; scrollbars
|
|
333 |
;
|
144
|
334 |
scrollBarButtonPositions #around "or: #top #bottom"
|
|
335 |
scrollBarLevel 0 "level of scrollBar"
|
|
336 |
scrollBarElementSpacing 0 "spacing betwen buttons & thumb"
|
|
337 |
scrollBarDisableButtons false "shall we disable buttons if appropriate"
|
122
|
338 |
|
|
339 |
;
|
|
340 |
; scrollers (also used in scrollBars)
|
|
341 |
;
|
|
342 |
scrollerViewBackground Color grey
|
|
343 |
scrollerThumbColor Color white
|
|
344 |
scrollerThumbFrameColor Color black "nil means no frame"
|
|
345 |
scrollerThumbLevel 0
|
|
346 |
scrollerThumbInset 0
|
|
347 |
scrollerThumbFixHeight false
|
|
348 |
scrollerThumbEdgeStyle nil "or #soft"
|
|
349 |
scrollerLevel 0
|
|
350 |
scrollerBorderWidth =borderWidth
|
|
351 |
scrollerNTallyMarks 0
|
|
352 |
scrollerTallyLevel 0
|
|
353 |
scrollerGhostColor nil "nil means - no ghosting"
|
|
354 |
scrollerGhostLevel 0 "only used if above color is nonNil"
|
|
355 |
|
|
356 |
;
|
|
357 |
; sliders may have different tally definition than scrollers
|
|
358 |
;
|
|
359 |
sliderNTallyMarks 1
|
|
360 |
sliderTallyLevel -1
|
144
|
361 |
sliderLevel nil "nil means: means inherit from scroller"
|
122
|
362 |
|
|
363 |
;
|
|
364 |
; framed boxes
|
|
365 |
;
|
|
366 |
framedBoxForegroundColor Color black
|
|
367 |
framedBoxLabelPosition #topCenter "#topLeft #topRight #bottomLeft #bottomCenter #bottomRight"
|
|
368 |
|
144
|
369 |
rulerForegroundColor nil "nil means: use foregroundColor or Black or White"
|
|
370 |
rulerBackgroundColor nil "nil means: use viewBackground"
|
|
371 |
rulerMetric nil "nil means: use #mm for german, #inch for all others"
|
122
|
372 |
|
|
373 |
;
|
|
374 |
; dialog boxes
|
|
375 |
;
|
|
376 |
|
|
377 |
;
|
|
378 |
; information-box
|
|
379 |
;
|
|
380 |
informationBoxIcon (Image fromFile:'bitmaps/Information.xbm')
|
|
381 |
|
|
382 |
;
|
|
383 |
; warnbox
|
|
384 |
;
|
|
385 |
warnBoxIcon (Image fromFile:'bitmaps/Information.xbm')
|
|
386 |
|
|
387 |
;
|
|
388 |
; yes/no requests
|
|
389 |
;
|
|
390 |
requestBoxIcon (Image fromFile:'bitmaps/Request.xbm')
|