author | Claus Gittinger <cg@exept.de> |
Thu, 20 Aug 1998 20:36:19 +0200 | |
changeset 2258 | ca38e3e5e3e4 |
parent 2257 | 3707d66694fb |
child 2307 | c61ba06af749 |
permissions | -rw-r--r-- |
2100 | 1 |
; View defaultStyle:#mswindows95 |
2 |
; |
|
2258 | 3 |
; $Header: /cvs/stx/stx/libview/styles/mswindows95.style,v 1.9 1998-08-20 18:36:19 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 |
||
19 |
#if Display hasGreyscales |
|
20 |
selectionBlue (Color red:0 green:0 blue:50) exactOrNearestOn:(Screen current) |
|
21 |
||
22 |
; viewGrey (Color grey:67) exactOrNearestOn:(Screen current) |
|
23 |
viewGrey (Color grey:77) exactOrNearestOn:(Screen current) |
|
24 |
; viewLightGrey (Color grey:80) exactOrNearestOn:(Screen current) |
|
25 |
viewLightGrey (Color grey:90) exactOrNearestOn:(Screen current) |
|
26 |
lightColor Color white |
|
27 |
halfShadowColor (Color grey:33) exactOrNearestOn:(Screen current) |
|
28 |
; halfLightColor (Color grey:67) exactOrNearestOn:(Screen current) |
|
29 |
; halfLightColor Color white "/ grey:67 |
|
30 |
halfLightColor =viewGrey |
|
31 |
#else |
|
32 |
selectionBlue Color black |
|
33 |
viewGrey Color white |
|
34 |
viewLightGrey Color white |
|
35 |
lightColor Color grey:50 |
|
36 |
#endif |
|
37 |
||
38 |
shadowColor Color black |
|
39 |
||
40 |
borderWidth 0 |
|
41 |
viewBackground =viewGrey |
|
42 |
popup.borderWidth 1 |
|
43 |
popup.shadow false |
|
44 |
||
2258 | 45 |
#if Display width <= 800 |
46 |
font Font family:'helvetica' face:'medium' style:'roman' size:10 |
|
47 |
textFont Font family:'courier' face:'medium' style:'roman' size:10 |
|
48 |
#else |
|
2222
d3552234eb8e
use MS fonts, if running native
Claus Gittinger <cg@exept.de>
parents:
2209
diff
changeset
|
49 |
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
|
50 |
textFont Font family:'courier' face:'medium' style:'roman' size:12 |
2258 | 51 |
#endif |
2222
d3552234eb8e
use MS fonts, if running native
Claus Gittinger <cg@exept.de>
parents:
2209
diff
changeset
|
52 |
|
2223 | 53 |
#if Display serverVendor = 'microsoft' and:[Display width <= 800] |
54 |
font Font family:'MS SANS SERIF' size:8 |
|
55 |
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
|
56 |
#endif |
d3552234eb8e
use MS fonts, if running native
Claus Gittinger <cg@exept.de>
parents:
2209
diff
changeset
|
57 |
|
2223 | 58 |
#if Display serverVendor = 'microsoft' and:[Display width > 800] |
59 |
font Font family:'MS SANS SERIF' size:10 |
|
60 |
textFont Font family:'courier' face:'medium' style:'roman' size:10 |
|
61 |
#endif |
|
2258 | 62 |
menuFont =font |
2223 | 63 |
|
64 |
||
2222
d3552234eb8e
use MS fonts, if running native
Claus Gittinger <cg@exept.de>
parents:
2209
diff
changeset
|
65 |
selection.font =font |
2100 | 66 |
|
67 |
textCursor.type #ibeam |
|
68 |
textCursor.noFocusForegroundColor Color grey |
|
69 |
||
70 |
#if Display hasGrayscales |
|
71 |
; editField.backgroundColor Color grey:90 |
|
72 |
editField.backgroundColor Color white |
|
73 |
#else |
|
74 |
editField.backgroundColor Color white |
|
75 |
editField.shadowColor Color black |
|
76 |
editField.lightColor Color grey:80 |
|
77 |
#endif |
|
78 |
||
79 |
checkToggle.activeLevel -2 |
|
80 |
checkToggle.passiveLevel -2 |
|
81 |
checkToggle.foregroundColor Color black |
|
82 |
checkToggle.backgroundColor Color white |
|
83 |
checkToggle.activeForegroundColor Color black |
|
84 |
checkToggle.activeBackgroundColor Color white |
|
85 |
checkToggle.bitmapFile 'CheckOn14.xbm' |
|
86 |
||
87 |
#if Display hasGreyscales |
|
88 |
menu.hilightForegroundColor Color white |
|
89 |
menu.hilightBackgroundColor =selectionBlue |
|
90 |
#else |
|
91 |
menu.hilightForegroundColor Color white |
|
92 |
menu.hilightBackgroundColor Color black |
|
93 |
#endif |
|
2256 | 94 |
menu.buttonEnteredLevel 1 |
95 |
menu.buttonPassiveLevel 0 |
|
96 |
menu.buttonActiveLevel -1 |
|
2257 | 97 |
menu.buttonItemSpace 2 |
2100 | 98 |
|
99 |
pullDownMenu.separatingLines false |
|
100 |
pullDownMenu.level 0 |
|
101 |
||
102 |
selection.hilightForegroundColor Color white |
|
103 |
#if Display hasGrayscales |
|
104 |
selection.hilightBackgroundColor =selectionBlue |
|
105 |
#else |
|
106 |
selection.hilightBackgroundColor Color black |
|
107 |
#endif |
|
108 |
selection.hilightFrameColor Color black |
|
109 |
selection.rightArrowLevel 0 |
|
110 |
selection.rightArrowStyle #solid |
|
111 |
||
112 |
variablePanel.handlePosition #right |
|
2207 | 113 |
variablePanel.handleStyle #full |
2209
bffedf5daffb
oops - SGI server has a bug showing dashed lines.
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
114 |
#if Display serverVendor ~= 'Silicon Graphics' |
bffedf5daffb
oops - SGI server has a bug showing dashed lines.
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
115 |
; SGI Xserver has a bug, keeping the dashed lineStyle in its GC |
2100 | 116 |
variablePanel.trackingStyle #dashedLine |
2209
bffedf5daffb
oops - SGI server has a bug showing dashed lines.
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
117 |
#else |
bffedf5daffb
oops - SGI server has a bug showing dashed lines.
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
118 |
variablePanel.trackingStyle #solidLine |
bffedf5daffb
oops - SGI server has a bug showing dashed lines.
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
119 |
#endif |
2207 | 120 |
variablePanel.barHeight 6 |
121 |
variablePanel.handleLevel 1 |
|
2100 | 122 |
|
123 |
scrollableView.level -1 |
|
124 |
; scrollableView.backgroundColor =viewLightGrey |
|
125 |
scrolledView.borderWidth 0 |
|
126 |
scrolledView.level 0 |
|
2224 | 127 |
scrolledView.margin 1 |
2100 | 128 |
scrollBar.level 0 |
129 |
scrollBar.spacing 0 |
|
130 |
scrollBar.hiding true |
|
131 |
scrollBar.neverMini true |
|
132 |
scrollBar.position #right |
|
133 |
scrollBar.buttonPositions #around |
|
134 |
scrollBar.viewBackground =viewLightGrey |
|
2256 | 135 |
scrollBar.elementSpacing 0 |
2100 | 136 |
|
137 |
#if Display hasGreyscales |
|
138 |
scroller.viewBackground =viewLightGrey |
|
139 |
scroller.thumbColor =viewGrey |
|
2256 | 140 |
; scroller.thumbEdgeStyle #soft |
141 |
scroller.thumbEdgeStyle #softWin95 |
|
2100 | 142 |
scroller.thumbLightColor =viewGrey |
143 |
scroller.thumbHalfLightColor Color white |
|
144 |
#else |
|
145 |
scroller.viewBackground Color grey:87.5 |
|
146 |
scroller.thumbColor Color white |
|
147 |
#endif |
|
148 |
||
149 |
scroller.thumbLevel 2 |
|
150 |
scroller.borderWidth 1 |
|
151 |
scroller.level 0 |
|
152 |
scroller.ghostFrameColor Color darkGrey |
|
153 |
scroller.snapBack true |
|
154 |
||
155 |
;button.activeLevel 1 |
|
156 |
button.activeLevel -1 "/ 0 |
|
157 |
button.passiveLevel 2 |
|
158 |
#if Display hasGreyscales |
|
2256 | 159 |
; button.edgeStyle #soft |
160 |
button.edgeStyle #softWin95 |
|
2100 | 161 |
; button.activeForegroundColor Color black |
162 |
; button.activeBackgroundColor Color white |
|
163 |
; button.enteredBackgroundColor Color lightGrey |
|
164 |
button.halfShadowColor =viewGrey darkened exactOrNearestOn:(Screen current) |
|
165 |
button.halfLightColor Color white |
|
166 |
#else |
|
167 |
button.activeBackgroundColor Color black |
|
168 |
button.activeForegroundColor Color white |
|
169 |
; button.enteredBackgroundColor Color grey:87.5 |
|
170 |
#endif |
|
171 |
||
172 |
radioButton.style #round3D |
|
173 |
||
174 |
; arrowButton.upFormFile 'ScrollUp.w95.14.xbm'. |
|
175 |
; arrowButton.downFormFile 'ScrollDn.w95.14.xbm'. |
|
176 |
; arrowButton.leftFormFile 'ScrollLt.w95.14.xbm'. |
|
177 |
; arrowButton.rightFormFile 'ScrollRt.w95.14.xbm'. |
|
178 |
arrowButton.upFormFile 'ScrollUp.w95.11.xbm'. |
|
179 |
arrowButton.downFormFile 'ScrollDn.w95.11.xbm'. |
|
180 |
arrowButton.leftFormFile 'ScrollLt.w95.11.xbm'. |
|
181 |
arrowButton.rightFormFile 'ScrollRt.w95.11.xbm'. |
|
182 |
||
183 |
selection.rightArrowForm Image extent:16@12 depth:1 \ |
|
184 |
bits:#[ \ |
|
185 |
2r00000000 2r00000000 \ |
|
186 |
2r00000000 2r00000000 \ |
|
187 |
2r00000000 2r00000000 \ |
|
188 |
2r00000010 2r00000000 \ |
|
189 |
2r00000011 2r00000000 \ |
|
190 |
2r00000011 2r10000000 \ |
|
191 |
2r00000011 2r11000000 \ |
|
192 |
2r00000011 2r10000000 \ |
|
193 |
2r00000011 2r00000000 \ |
|
194 |
2r00000010 2r00000000 \ |
|
195 |
2r00000000 2r00000000 \ |
|
196 |
2r00000000 2r00000000 \ |
|
197 |
] \ |
|
198 |
pad:8 |
|
199 |
||
200 |
comboView.level -1 |
|
201 |
comboView.downFormFile 'ScrollDn.w95.11.xbm'. |
|
202 |
||
203 |
||
204 |
html.backgroundColor Color white |
|
205 |
html.anchorForegroundColor Color green darkened |
|
206 |
html.visitedAnchorForegroundColor =html.anchorForegroundColor darkened darkened |
|
207 |
html.anchorUnderlines true |
|
208 |
||
209 |
activeHelp.backgroundColor Color yellow lightened |
|
210 |
activeHelp.borderWidth 2 |