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