author | Claus Gittinger <cg@exept.de> |
Fri, 26 Mar 1999 16:42:12 +0100 | |
changeset 2542 | a95722bdec35 |
parent 2458 | 92792582f878 |
child 2551 | e36d03ecaa14 |
permissions | -rw-r--r-- |
2100 | 1 |
; View defaultStyle:#mswindows95 |
2 |
; |
|
2542 | 3 |
; $Header: /cvs/stx/stx/libview/styles/mswindows95.style,v 1.19 1999-03-26 15:42:12 cg Exp $ |
2100 | 4 |
|
5 |
comment 'win95 lookalike' |
|
6 |
||
7 |
#if (Language == #german) or:[Language == #de] |
|
8 |
comment 'an MS Windows95 angelehnter Stil' |
|
9 |
#endif |
|
10 |
||
11 |
#if (Language == #french) or:[Language == #fr] |
|
12 |
comment 'Un style qui résemble MS Windows95' |
|
13 |
#endif |
|
14 |
||
15 |
is3D true |
|
16 |
name #win95 |
|
17 |
||
18 |
||
2542 | 19 |
; |
20 |
; notice: the values below |
|
21 |
; are not used when running under native Windows |
|
22 |
; (uses system-settings values then) |
|
23 |
; |
|
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
24 |
#if Display hasGreyscales |
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
25 |
|
2100 | 26 |
selectionBlue (Color red:0 green:0 blue:50) exactOrNearestOn:(Screen current) |
27 |
||
28 |
; viewGrey (Color grey:67) exactOrNearestOn:(Screen current) |
|
29 |
viewGrey (Color grey:77) exactOrNearestOn:(Screen current) |
|
30 |
; viewLightGrey (Color grey:80) exactOrNearestOn:(Screen current) |
|
31 |
viewLightGrey (Color grey:90) exactOrNearestOn:(Screen current) |
|
32 |
lightColor Color white |
|
33 |
halfShadowColor (Color grey:33) exactOrNearestOn:(Screen current) |
|
34 |
; halfLightColor (Color grey:67) exactOrNearestOn:(Screen current) |
|
35 |
; halfLightColor Color white "/ grey:67 |
|
36 |
halfLightColor =viewGrey |
|
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
37 |
|
2100 | 38 |
#else |
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
39 |
|
2100 | 40 |
selectionBlue Color black |
41 |
viewGrey Color white |
|
42 |
viewLightGrey Color white |
|
43 |
lightColor Color grey:50 |
|
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
44 |
|
2100 | 45 |
#endif |
46 |
||
47 |
shadowColor Color black |
|
48 |
||
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
49 |
#if Display platformName = 'WIN32' |
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
50 |
|
2349
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
51 |
selectionBlue [Display getSystemColor:#'COLOR_HIGHLIGHT'] |
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
52 |
menu.backgroundColor [Display getSystemColor:#'COLOR_MENU' ] |
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
53 |
menu.foregroundColor [Display getSystemColor:#'COLOR_MENUTEXT' ] |
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
54 |
pullDownMenu.backgroundColor =menu.backgroundColor |
2349
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
55 |
viewGrey [Display getSystemColor:#'COLOR_BTNFACE' ] |
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
56 |
|
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
57 |
#endif |
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
58 |
|
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
59 |
|
2100 | 60 |
borderWidth 0 |
61 |
viewBackground =viewGrey |
|
62 |
popup.borderWidth 1 |
|
63 |
popup.shadow false |
|
64 |
||
2377 | 65 |
#if Display width <= 640 |
2258 | 66 |
font Font family:'helvetica' face:'medium' style:'roman' size:10 |
67 |
textFont Font family:'courier' face:'medium' style:'roman' size:10 |
|
68 |
#else |
|
2222
d3552234eb8e
use MS fonts, if running native
Claus Gittinger <cg@exept.de>
parents:
2209
diff
changeset
|
69 |
font Font family:'helvetica' face:'medium' style:'roman' size:12 |
d3552234eb8e
use MS fonts, if running native
Claus Gittinger <cg@exept.de>
parents:
2209
diff
changeset
|
70 |
textFont Font family:'courier' face:'medium' style:'roman' size:12 |
2258 | 71 |
#endif |
2222
d3552234eb8e
use MS fonts, if running native
Claus Gittinger <cg@exept.de>
parents:
2209
diff
changeset
|
72 |
|
2377 | 73 |
#if (Display platformName = 'WIN32' and:[Display width <= 640]) |
2223 | 74 |
font Font family:'MS SANS SERIF' size:8 |
75 |
textFont Font family:'courier' face:'medium' style:'roman' size:8 |
|
2222
d3552234eb8e
use MS fonts, if running native
Claus Gittinger <cg@exept.de>
parents:
2209
diff
changeset
|
76 |
#endif |
d3552234eb8e
use MS fonts, if running native
Claus Gittinger <cg@exept.de>
parents:
2209
diff
changeset
|
77 |
|
2377 | 78 |
#if (Display platformName = 'WIN32' and:[Display width > 640]) |
2223 | 79 |
font Font family:'MS SANS SERIF' size:10 |
80 |
textFont Font family:'courier' face:'medium' style:'roman' size:10 |
|
81 |
#endif |
|
2258 | 82 |
menuFont =font |
2223 | 83 |
|
84 |
||
2222
d3552234eb8e
use MS fonts, if running native
Claus Gittinger <cg@exept.de>
parents:
2209
diff
changeset
|
85 |
selection.font =font |
2100 | 86 |
|
2349
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
87 |
focus.showBorder false |
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
88 |
focus.takeOnClick true |
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
89 |
|
2100 | 90 |
textCursor.type #ibeam |
91 |
textCursor.noFocusForegroundColor Color grey |
|
92 |
||
93 |
#if Display hasGrayscales |
|
94 |
; editField.backgroundColor Color grey:90 |
|
95 |
editField.backgroundColor Color white |
|
96 |
#else |
|
97 |
editField.backgroundColor Color white |
|
98 |
editField.shadowColor Color black |
|
99 |
editField.lightColor Color grey:80 |
|
100 |
#endif |
|
101 |
||
102 |
checkToggle.activeLevel -2 |
|
103 |
checkToggle.passiveLevel -2 |
|
104 |
checkToggle.foregroundColor Color black |
|
105 |
checkToggle.backgroundColor Color white |
|
106 |
checkToggle.activeForegroundColor Color black |
|
107 |
checkToggle.activeBackgroundColor Color white |
|
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
108 |
checkToggle.bitmapFile 'CheckOn10.xbm' |
2100 | 109 |
|
110 |
#if Display hasGreyscales |
|
111 |
menu.hilightForegroundColor Color white |
|
112 |
menu.hilightBackgroundColor =selectionBlue |
|
113 |
#else |
|
114 |
menu.hilightForegroundColor Color white |
|
115 |
menu.hilightBackgroundColor Color black |
|
116 |
#endif |
|
2256 | 117 |
menu.buttonEnteredLevel 1 |
118 |
menu.buttonPassiveLevel 0 |
|
119 |
menu.buttonActiveLevel -1 |
|
2257 | 120 |
menu.buttonItemSpace 2 |
2100 | 121 |
|
122 |
pullDownMenu.separatingLines false |
|
123 |
pullDownMenu.level 0 |
|
124 |
||
125 |
selection.hilightForegroundColor Color white |
|
126 |
#if Display hasGrayscales |
|
127 |
selection.hilightBackgroundColor =selectionBlue |
|
128 |
#else |
|
129 |
selection.hilightBackgroundColor Color black |
|
130 |
#endif |
|
131 |
selection.hilightFrameColor Color black |
|
132 |
selection.rightArrowLevel 0 |
|
133 |
selection.rightArrowStyle #solid |
|
134 |
||
135 |
variablePanel.handlePosition #right |
|
2373
0ac9abce2387
variablePanels bar beautified
Claus Gittinger <cg@exept.de>
parents:
2358
diff
changeset
|
136 |
; variablePanel.handleStyle #full |
0ac9abce2387
variablePanels bar beautified
Claus Gittinger <cg@exept.de>
parents:
2358
diff
changeset
|
137 |
variablePanel.handleStyle #none |
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
138 |
|
2209
bffedf5daffb
oops - SGI server has a bug showing dashed lines.
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
139 |
#if Display serverVendor ~= 'Silicon Graphics' |
bffedf5daffb
oops - SGI server has a bug showing dashed lines.
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
140 |
; SGI Xserver has a bug, keeping the dashed lineStyle in its GC |
2100 | 141 |
variablePanel.trackingStyle #dashedLine |
2209
bffedf5daffb
oops - SGI server has a bug showing dashed lines.
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
142 |
#else |
bffedf5daffb
oops - SGI server has a bug showing dashed lines.
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
143 |
variablePanel.trackingStyle #solidLine |
bffedf5daffb
oops - SGI server has a bug showing dashed lines.
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
144 |
#endif |
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
145 |
|
2373
0ac9abce2387
variablePanels bar beautified
Claus Gittinger <cg@exept.de>
parents:
2358
diff
changeset
|
146 |
; variablePanel.barHeight 6 |
0ac9abce2387
variablePanels bar beautified
Claus Gittinger <cg@exept.de>
parents:
2358
diff
changeset
|
147 |
; variablePanel.handleLevel 1 |
0ac9abce2387
variablePanels bar beautified
Claus Gittinger <cg@exept.de>
parents:
2358
diff
changeset
|
148 |
variablePanel.barHeight 4 |
0ac9abce2387
variablePanels bar beautified
Claus Gittinger <cg@exept.de>
parents:
2358
diff
changeset
|
149 |
variablePanel.handleLevel 0 |
2100 | 150 |
|
151 |
scrollableView.level -1 |
|
152 |
; scrollableView.backgroundColor =viewLightGrey |
|
153 |
scrolledView.borderWidth 0 |
|
154 |
scrolledView.level 0 |
|
2224 | 155 |
scrolledView.margin 1 |
2100 | 156 |
scrollBar.level 0 |
157 |
scrollBar.spacing 0 |
|
158 |
scrollBar.hiding true |
|
159 |
scrollBar.neverMini true |
|
160 |
scrollBar.position #right |
|
161 |
scrollBar.buttonPositions #around |
|
162 |
scrollBar.viewBackground =viewLightGrey |
|
2256 | 163 |
scrollBar.elementSpacing 0 |
2100 | 164 |
|
165 |
#if Display hasGreyscales |
|
166 |
scroller.viewBackground =viewLightGrey |
|
167 |
scroller.thumbColor =viewGrey |
|
2256 | 168 |
; scroller.thumbEdgeStyle #soft |
169 |
scroller.thumbEdgeStyle #softWin95 |
|
2100 | 170 |
scroller.thumbLightColor =viewGrey |
171 |
scroller.thumbHalfLightColor Color white |
|
172 |
#else |
|
173 |
scroller.viewBackground Color grey:87.5 |
|
174 |
scroller.thumbColor Color white |
|
175 |
#endif |
|
176 |
||
177 |
scroller.thumbLevel 2 |
|
2358 | 178 |
# scroller.borderWidth 1 |
179 |
scroller.borderWidth 0 |
|
2100 | 180 |
scroller.level 0 |
181 |
scroller.ghostFrameColor Color darkGrey |
|
182 |
scroller.snapBack true |
|
183 |
||
184 |
;button.activeLevel 1 |
|
185 |
button.activeLevel -1 "/ 0 |
|
186 |
button.passiveLevel 2 |
|
187 |
#if Display hasGreyscales |
|
2256 | 188 |
; button.edgeStyle #soft |
189 |
button.edgeStyle #softWin95 |
|
2100 | 190 |
; button.activeForegroundColor Color black |
191 |
; button.activeBackgroundColor Color white |
|
192 |
; button.enteredBackgroundColor Color lightGrey |
|
2349
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
193 |
; button.halfShadowColor =viewGrey darkened exactOrNearestOn:(Screen current) |
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
194 |
button.halfShadowColor =halfShadowColor |
2100 | 195 |
button.halfLightColor Color white |
196 |
#else |
|
197 |
button.activeBackgroundColor Color black |
|
198 |
button.activeForegroundColor Color white |
|
199 |
; button.enteredBackgroundColor Color grey:87.5 |
|
200 |
#endif |
|
201 |
||
202 |
radioButton.style #round3D |
|
203 |
||
204 |
; arrowButton.upFormFile 'ScrollUp.w95.14.xbm'. |
|
205 |
; arrowButton.downFormFile 'ScrollDn.w95.14.xbm'. |
|
206 |
; arrowButton.leftFormFile 'ScrollLt.w95.14.xbm'. |
|
207 |
; arrowButton.rightFormFile 'ScrollRt.w95.14.xbm'. |
|
208 |
arrowButton.upFormFile 'ScrollUp.w95.11.xbm'. |
|
209 |
arrowButton.downFormFile 'ScrollDn.w95.11.xbm'. |
|
210 |
arrowButton.leftFormFile 'ScrollLt.w95.11.xbm'. |
|
211 |
arrowButton.rightFormFile 'ScrollRt.w95.11.xbm'. |
|
212 |
||
213 |
selection.rightArrowForm Image extent:16@12 depth:1 \ |
|
214 |
bits:#[ \ |
|
215 |
2r00000000 2r00000000 \ |
|
216 |
2r00000000 2r00000000 \ |
|
217 |
2r00000000 2r00000000 \ |
|
218 |
2r00000010 2r00000000 \ |
|
219 |
2r00000011 2r00000000 \ |
|
220 |
2r00000011 2r10000000 \ |
|
221 |
2r00000011 2r11000000 \ |
|
222 |
2r00000011 2r10000000 \ |
|
223 |
2r00000011 2r00000000 \ |
|
224 |
2r00000010 2r00000000 \ |
|
225 |
2r00000000 2r00000000 \ |
|
226 |
2r00000000 2r00000000 \ |
|
227 |
] \ |
|
228 |
pad:8 |
|
229 |
||
230 |
comboView.level -1 |
|
231 |
comboView.downFormFile 'ScrollDn.w95.11.xbm'. |
|
232 |
||
233 |
||
234 |
html.backgroundColor Color white |
|
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
235 |
; html.anchorForegroundColor Color green darkened |
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
236 |
; html.visitedAnchorForegroundColor =html.anchorForegroundColor darkened darkened |
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
237 |
html.visitedAnchorForegroundColor Color red:50 green:0 blue:50 |
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
238 |
; html.anchorUnderlines true |
2100 | 239 |
|
240 |
activeHelp.backgroundColor Color yellow lightened |
|
241 |
activeHelp.borderWidth 2 |
|
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
242 |
|
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
243 |
; |
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
244 |
; if running under windows, use the systemColor settings |
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
245 |
; |
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
246 |
#if Display platformName = 'WIN32' |
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
247 |
|
2349
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
248 |
menu.backgroundColor [Display getSystemColor:#'COLOR_MENU' ] |
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
249 |
menu.foregroundColor [Display getSystemColor:#'COLOR_MENUTEXT' ] |
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
250 |
pullDownMenu.backgroundColor =menu.backgroundColor |
2349
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
251 |
button.backgroundColor [Display getSystemColor:#'COLOR_BTNFACE' ] |
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
252 |
text.selectionForegroundColor [Display getSystemColor:#'COLOR_HIGHLIGHTTEXT' ] |
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
253 |
text.selectionBackgroundColor [Display getSystemColor:#'COLOR_HIGHLIGHT' ] |
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
254 |
scroller.thumbColor [Display getSystemColor:#'COLOR_BTNFACE' ] |
2320 | 255 |
#endif |
2315 | 256 |
|
2316 | 257 |
#if (Display platformName = 'WIN32') and:[(Display getSystemColor:#'COLOR_SCROLLBAR') brightness > 0.95] |
2349
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
258 |
scroller.viewBackground [(Form width:8 height:8 fromArray:(Color ditherBits at:32) on:Display) colorMap:(Array with:Color black with:(Display getSystemColor:#'COLOR_SCROLLBAR') )] |
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
259 |
#endif |
2316 | 260 |
#if (Display platformName = 'WIN32') and:[(Display getSystemColor:#'COLOR_SCROLLBAR') brightness <= 0.95] |
2349
f72580f54ff1
use blocks for systemColor settings
Claus Gittinger <cg@exept.de>
parents:
2320
diff
changeset
|
261 |
scroller.viewBackground [(Form width:8 height:8 fromArray:(Color ditherBits at:32) on:Display) colorMap:(Array with:Color white with:(Display getSystemColor:#'COLOR_SCROLLBAR') )] |
2320 | 262 |
#endif |
2307
c61ba06af749
if running under native windows, use the systemColors
Claus Gittinger <cg@exept.de>
parents:
2258
diff
changeset
|
263 |
|
2458 | 264 |
warningBox.iconFile 'bitmaps/Warning_w95.xpm' |