author | convert-repo |
Fri, 21 Dec 2018 04:38:02 +0000 | |
changeset 8601 | bee9c53ab413 |
parent 4394 | ddfd58847892 |
permissions | -rw-r--r-- |
4394 | 1 |
; View defaultStyle:#os2 |
122 | 2 |
; |
3 |
; this is not yet completed |
|
4 |
; |
|
4394 | 5 |
; $Header: /cvs/stx/stx/libview/styles/os2.style,v 1.20 2005-06-27 10:34:22 cg Exp $ |
144 | 6 |
|
7 |
comment 'OS/2 look alike' |
|
122 | 8 |
|
309 | 9 |
#if (Language == #german) or:[Language == #de] |
498 | 10 |
comment 'An `OS/2'' angelehnter Stil' |
11 |
#endif |
|
12 |
#if (Language == #french) or:[Language == #fr] |
|
13 |
comment 'Comme `OS/2''' |
|
309 | 14 |
#endif |
15 |
||
122 | 16 |
is3D true |
4394 | 17 |
name #os2 |
122 | 18 |
|
144 | 19 |
; viewGrey Color grey:80 |
20 |
; darkerGrey Color grey:67 |
|
152 | 21 |
|
22 |
||
4394 | 23 |
#if Screen current hasColors |
1857 | 24 |
Yellow (Color red:100 green:100 blue:70) exactOrNearestOn:(Screen current) |
1853
c3d87b4f6051
use nearest colors to avoid dithered view backgrounds
Claus Gittinger <cg@exept.de>
parents:
1620
diff
changeset
|
25 |
Yellow (Color red:100 green:100 blue:70) |
152 | 26 |
#else |
1040 | 27 |
Yellow Color white |
152 | 28 |
#endif |
29 |
||
4394 | 30 |
#if Screen current hasGreyscales |
31 |
viewGrey (Color grey:67) exactOrNearestOn:(Screen current) |
|
32 |
brighterGrey (Color grey:80) exactOrNearestOn:(Screen current) |
|
33 |
darkerGrey (Color grey:50) exactOrNearestOn:(Screen current) |
|
152 | 34 |
#else |
1040 | 35 |
Yellow Color white |
4394 | 36 |
viewGrey Color white |
37 |
brighterGrey Color white |
|
38 |
darkerGrey Color white |
|
152 | 39 |
#endif |
144 | 40 |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2609
diff
changeset
|
41 |
#if Screen current platformName = 'WIN32' |
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2609
diff
changeset
|
42 |
viewGrey [Screen current getSystemColor:#'COLOR_BTNFACE'] |
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2609
diff
changeset
|
43 |
brighterGrey [Screen current getSystemColor:#'COLOR_BTNFACE'] |
2609
520137eaca29
preference values in os2 style
Claus Gittinger <cg@exept.de>
parents:
2568
diff
changeset
|
44 |
darkerGrey Color grey:50 |
520137eaca29
preference values in os2 style
Claus Gittinger <cg@exept.de>
parents:
2568
diff
changeset
|
45 |
#endif |
520137eaca29
preference values in os2 style
Claus Gittinger <cg@exept.de>
parents:
2568
diff
changeset
|
46 |
|
122 | 47 |
borderWidth 0 |
48 |
viewBackground =viewGrey |
|
49 |
||
1951 | 50 |
fatFont Font family:'helvetica' face:'bold' style:'roman' size:12 |
144 | 51 |
thinFont Font family:'helvetica' face:'medium' style:'roman' size:12 |
52 |
||
1948 | 53 |
scrollBar.position #right |
122 | 54 |
|
4394 | 55 |
scrollBar.buttonPositions #around |
1948 | 56 |
scrollBar.level -1 |
57 |
scrollBar.elementSpacing 0 |
|
58 |
scrollBar.disableButtons true "/ disable useless scrollButtons |
|
59 |
scrollBar.hiding true "/ automatic hiding of useless scrollBars |
|
122 | 60 |
|
1948 | 61 |
scroller.level 0 |
4394 | 62 |
scroller.viewBackground =darkerGrey |
1948 | 63 |
scroller.thumbColor =viewGrey |
64 |
scroller.thumbLevel 1 |
|
65 |
scroller.thumbInset 0 |
|
66 |
;scroller.thumbInset 1 |
|
2468
1a93026b436f
slightly increased miniScroller sizes
Claus Gittinger <cg@exept.de>
parents:
1959
diff
changeset
|
67 |
miniScroller.size 2.5 "/ millimeter |
144 | 68 |
|
1948 | 69 |
button.edgeStyle #soft |
70 |
button.activeLevel -1 |
|
71 |
button.passiveLevel 3 |
|
72 |
button.returnButtonHasBorder true |
|
73 |
; button.activeBackgroundColor =darkerGrey |
|
4394 | 74 |
#if Screen current hasGreyscales |
1948 | 75 |
button.activeBackgroundColor =brighterGrey |
152 | 76 |
#else |
1948 | 77 |
button.activeBackgroundColor Color black |
78 |
button.activeForegroundColor Color white |
|
152 | 79 |
#endif |
122 | 80 |
|
1951 | 81 |
radioButton.style #round3D |
82 |
||
1948 | 83 |
textCursor.type #solidCaret |
84 |
textCursor.backgroundColor Color black |
|
85 |
textCursor.noFocusForegroundColor Color grey |
|
122 | 86 |
|
1948 | 87 |
popup.shadow true |
88 |
popup.shadowColor Color black |
|
4394 | 89 |
popup.borderWidth 1 |
122 | 90 |
|
4394 | 91 |
arrowButton.style #os2 |
1948 | 92 |
arrowButton.foregroundColor Color black |
93 |
arrowButton.activeBackgroundColor =viewGrey |
|
94 |
arrowButton.upFormFile 'ScrollUp.os2.14.xbm'. |
|
95 |
arrowButton.downFormFile 'ScrollDn.os2.14.xbm'. |
|
96 |
arrowButton.leftFormFile 'ScrollLt.os2.14.xbm'. |
|
97 |
arrowButton.rightFormFile 'ScrollRt.os2.14.xbm'. |
|
98 |
arrowButton.activeLevel -1 "/ 0 |
|
99 |
arrowButton.passiveLevel 1 |
|
122 | 100 |
|
4394 | 101 |
#if Screen current hasGreyscales |
1948 | 102 |
button.disabledForegroundColor Color white |
103 |
arrowButton.activeForegroundColor Color white |
|
152 | 104 |
#else |
1948 | 105 |
button.disabledForegroundColor Color grey |
106 |
arrowButton.activeForegroundColor Color grey |
|
152 | 107 |
#endif |
144 | 108 |
|
1948 | 109 |
checkToggle.checkColor Color black |
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2609
diff
changeset
|
110 |
#if Screen current hasGreyscales not |
1948 | 111 |
checkToggle.activeBackgroundColor Color white |
2568 | 112 |
#else |
113 |
checkToggle.activeBackgroundColor =viewGrey |
|
152 | 114 |
#endif |
144 | 115 |
|
1948 | 116 |
selection.font =fatFont |
1951 | 117 |
label.font =thinFont |
144 | 118 |
|
1948 | 119 |
selection.backgroundColor =Yellow |
120 |
selection.hilightForegroundColor Color white |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2609
diff
changeset
|
121 |
#if Screen current hasGreyscales |
1948 | 122 |
selection.hilightBackgroundColor (Color grey:50) exactOrNearestOn:(Screen current) |
123 |
selection.hilightFrameColor (Color grey:25) exactOrNearestOn:(Screen current) |
|
152 | 124 |
#else |
1948 | 125 |
selection.hilightBackgroundColor Color black |
126 |
selection.hilightFrameColor Color grey:25 |
|
152 | 127 |
#endif |
144 | 128 |
|
1948 | 129 |
selection.hilightLevel 0 |
130 |
selection.rightArrowLevel 0 |
|
152 | 131 |
|
1948 | 132 |
editField.backgroundColor =Yellow |
133 |
editField.selectionBackgroundColor Color black |
|
134 |
editField.selectionForegroundColor Color white |
|
122 | 135 |
|
144 | 136 |
; |
137 |
; since menus inherit from selectionInList, |
|
1040 | 138 |
; redefine the Yellow settings ... |
144 | 139 |
; |
1951 | 140 |
menu.font =fatFont |
1948 | 141 |
menu.backgroundColor =viewGrey |
142 |
menu.shadowColor =menu.backgroundColor darkened |
|
143 |
menu.lightColor =menu.backgroundColor lightened |
|
144 |
; menu.hilightForegroundColor Color white |
|
145 |
; menu.hilightBackgroundColor =darkerGrey |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2609
diff
changeset
|
146 |
#if Screen current hasGreyscales |
1948 | 147 |
menu.hilightFrameColor nil |
148 |
menu.hilightLevel -1 |
|
152 | 149 |
#else |
1948 | 150 |
menu.hilightFrameColor Color black |
151 |
menu.hilightLevel 0 |
|
152 | 152 |
#endif |
1948 | 153 |
menu.viewBackground =viewGrey |
154 |
menu.separatingLineLevel 0 |
|
122 | 155 |
|
1951 | 156 |
pullDownMenu.font =fatFont |
1948 | 157 |
pullDownMenu.separatingLines false |
3702 | 158 |
;; pullDownMenu.level 0 |
159 |
pullDownMenu.level 1 |
|
1948 | 160 |
pullDownMenu.hilightLevel -1 |
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2609
diff
changeset
|
161 |
#if Screen current hasGrayscales |
1948 | 162 |
pullDownMenu.hilightForegroundColor Color black |
1620
49812898bfe2
html defs for monochrome displays
Claus Gittinger <cg@exept.de>
parents:
1447
diff
changeset
|
163 |
#else |
1948 | 164 |
pullDownMenu.hilightForegroundColor Color white |
1620
49812898bfe2
html defs for monochrome displays
Claus Gittinger <cg@exept.de>
parents:
1447
diff
changeset
|
165 |
#endif |
49812898bfe2
html defs for monochrome displays
Claus Gittinger <cg@exept.de>
parents:
1447
diff
changeset
|
166 |
|
2991
918e2f570098
removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents:
2609
diff
changeset
|
167 |
#if Screen current hasGrayscales not |
1948 | 168 |
html.anchorUnderline true |
169 |
html.anchorForegroundColor Color black |
|
170 |
html.backgroundColor Color white |
|
171 |
html.activeAnchorForegroundColor Color black |
|
172 |
html.activeAnchorBackgroundColor =html.backgroundColor |
|
173 |
html.visitedAnchorForegroundColor Color black |
|
174 |
html.exampleAnchorForegroundColor Color black |
|
1620
49812898bfe2
html defs for monochrome displays
Claus Gittinger <cg@exept.de>
parents:
1447
diff
changeset
|
175 |
#endif |
49812898bfe2
html defs for monochrome displays
Claus Gittinger <cg@exept.de>
parents:
1447
diff
changeset
|
176 |