4296
|
1 |
; View defaultStyle:#mswindowsXP
|
3720
|
2 |
;
|
4373
|
3 |
; $Header: /cvs/stx/stx/libview/styles/mswindowsXP.style,v 1.30 2005-03-31 14:50:33 cg Exp $
|
3720
|
4 |
|
4296
|
5 |
name #winXP
|
3720
|
6 |
|
4314
|
7 |
ToolbarIconLibrary XPToolbarIconLibrary
|
|
8 |
|
3720
|
9 |
;
|
|
10 |
; for now, much like win95, except for some menuPanel details
|
3725
|
11 |
; scrollbars are to come ...
|
3720
|
12 |
;
|
|
13 |
.
|
3750
|
14 |
;
|
|
15 |
; notice: the values below
|
|
16 |
; are not used when running under native Windows
|
|
17 |
; (uses system-settings values then)
|
|
18 |
;
|
4296
|
19 |
#if Screen current hasGreyscales
|
3750
|
20 |
|
|
21 |
selectionBlue (Color red:0 green:0 blue:50) exactOrNearestOn:(Screen current)
|
|
22 |
|
4316
|
23 |
; viewGrey (Color redByte:241 greenByte:242 blueByte:239) exactOrNearestOn:(Screen current)
|
|
24 |
viewGrey (Color grey:90) exactOrNearestOn:(Screen current)
|
4296
|
25 |
viewLightGrey Color white
|
3750
|
26 |
lightColor Color white
|
|
27 |
halfShadowColor (Color grey:80) exactOrNearestOn:(Screen current)
|
|
28 |
halfLightColor =viewGrey
|
|
29 |
shadowColor (Color grey:50) exactOrNearestOn:(Screen current)
|
|
30 |
|
|
31 |
#else
|
|
32 |
|
|
33 |
selectionBlue Color black
|
|
34 |
viewGrey Color white
|
4296
|
35 |
viewLightGrey Color white
|
3750
|
36 |
lightColor Color grey:50
|
|
37 |
shadowColor Color black
|
|
38 |
|
|
39 |
#endif
|
|
40 |
|
|
41 |
#if Screen current platformName = 'WIN32'
|
|
42 |
|
|
43 |
selectionBlue [Screen current getSystemColor:#'COLOR_HIGHLIGHT']
|
|
44 |
menu.backgroundColor [Screen current getSystemColor:#'COLOR_MENU' ]
|
|
45 |
menu.foregroundColor [Screen current getSystemColor:#'COLOR_MENUTEXT' ]
|
|
46 |
viewGrey [Screen current getSystemColor:#'COLOR_BTNFACE' ]
|
4311
|
47 |
lightenedViewGrey [(Screen current getSystemColor:#'COLOR_BTNFACE') lightened ]
|
|
48 |
darkenedViewGrey [(Screen current getSystemColor:#'COLOR_BTNFACE') darkened ]
|
|
49 |
|
|
50 |
#else
|
|
51 |
|
|
52 |
lightenedViewGrey Color redByte:240 greenByte:240 blueByte:240
|
|
53 |
darkenedViewGrey Color redByte:150 greenByte:150 blueByte:150
|
3750
|
54 |
|
|
55 |
#endif
|
|
56 |
|
|
57 |
#include 'mswindows95.common'
|
4311
|
58 |
|
4296
|
59 |
name #winXP
|
3720
|
60 |
|
3725
|
61 |
comment 'winXP lookalike (smarty design; experimental)'
|
3720
|
62 |
|
|
63 |
#if (Language == #german) or:[Language == #de]
|
|
64 |
comment 'an MS WindowsXP angelehnter Stil'
|
|
65 |
#endif
|
|
66 |
|
|
67 |
#if (Language == #french) or:[Language == #fr]
|
|
68 |
comment 'Un style qui résemble MS WindowsXP'
|
|
69 |
#endif
|
|
70 |
|
|
71 |
menu.enteredLevel 0
|
3725
|
72 |
; menu.buttonEnteredLevel 2 "/ sigh - does not work
|
|
73 |
|
3722
|
74 |
;; enable this, when old menuView cares for it also
|
4311
|
75 |
;; menu.itemMargin 1
|
|
76 |
menu.selectionFollowsMouse true
|
|
77 |
menu.enteredBackgroundColor =menu.hilightBackgroundColor
|
|
78 |
menu.enteredForegroundColor =menu.hilightForegroundColor
|
|
79 |
menu.iconIndicationOn.bitmapFile 'CheckOn_xp.xpm'
|
|
80 |
menu.iconIndicationOff.bitmapFile 'CheckOff_xp.xpm'
|
|
81 |
menu.iconRadioOn.bitmapFile 'RadioOn_xp.xpm'
|
|
82 |
menu.iconRadioOff.bitmapFile 'RadioOff_xp.xpm'
|
4307
|
83 |
menu.iconDisabledIndicationOn.bitmapFile 'CheckOn_disabled_xp.xpm'
|
|
84 |
menu.iconDisabledIndicationOff.bitmapFile 'CheckOff_disabled_xp.xpm'
|
|
85 |
menu.iconDisabledRadioOn.bitmapFile 'RadioOn_disabled_xp.xpm'
|
|
86 |
menu.iconDisabledRadioOff.bitmapFile 'RadioOff_disabled_xp.xpm'
|
3725
|
87 |
|
4311
|
88 |
;button.edgeStyle #soft
|
|
89 |
;button.activeLevel -1
|
|
90 |
;button.passiveLevel 3
|
|
91 |
;button.enteredBackgroundColor [ (Screen current getSystemColor:#'COLOR_BTNFACE') lightened ]
|
3725
|
92 |
|
4300
|
93 |
comboView.downFormFile 'ComboDn_xp.xpm'.
|
|
94 |
comboView.disabledDownFormFile 'ComboDn_disabled_xp.xpm'.
|
|
95 |
comboView.activeDownFormFile 'ComboDn_active_xp.xpm'.
|
|
96 |
comboView.enteredDownFormFile 'ComboDn_entered_xp.xpm'.
|
|
97 |
comboView.button.activeLevel 0
|
|
98 |
comboView.button.passiveLevel 0
|
|
99 |
comboView.button.activeBackgroundColor =viewGrey
|
4301
|
100 |
; comboView.button.activeBackgroundColor (Color white)
|
|
101 |
; comboView.button.backgroundColor (Color white)
|
|
102 |
; comboView.level 0
|
3725
|
103 |
|
3749
|
104 |
selection.highlightEnterItem true "/ underline-highlight item under cursor
|
|
105 |
|
4316
|
106 |
#if Screen current platformName = 'WIN32'
|
4296
|
107 |
scroller.viewBackground (Color redByte:16rFB greenByte:16rFB blueByte:16rF9)
|
4316
|
108 |
#else
|
|
109 |
scroller.viewBackground (Color redByte:221 greenByte:221 blueByte:204)
|
|
110 |
#endif
|
3725
|
111 |
scroller.thumbColor (Color redByte:175 greenByte:190 blueByte:240) slightlyLightened
|
4323
|
112 |
"/ scroller.thumbLightColor (Color redByte:16rCF greenByte:16rDD blueByte:16rFD)
|
|
113 |
scroller.thumbLightColor (Color redByte:238 greenByte:244 blueByte:254)
|
4296
|
114 |
scroller.thumbShadowColor (Color redByte:16r83 greenByte:16r9E blueByte:16rD8)
|
3725
|
115 |
scroller.thumbEnteredColor (Color redByte:175 greenByte:190 blueByte:240) lightened
|
|
116 |
scroller.thumbActiveColor (Color red:64 green:75 blue:98)
|
|
117 |
scroller.thumbLevel 0
|
|
118 |
scroller.thumbInset 1
|
4318
|
119 |
; scroller.thumbFrameColor Color white "/ (Color redByte:175 greenByte:190 blueByte:240) darkened
|
4323
|
120 |
scroller.thumbFrameColor (Color redByte:159 greenByte:181 blueByte:210)
|
4324
|
121 |
scroller.thumbFrameColor2 (Color redByte:16rEF greenByte:16rEF blueByte:16rEF)
|
3725
|
122 |
scroller.thumbEdgeStyle #edged
|
|
123 |
scroller.NTallyMarks 4
|
|
124 |
scroller.tallyLevel 1
|
4323
|
125 |
scroller.tallyInset 6
|
3725
|
126 |
scroller.tallyDistance 2
|
|
127 |
scroller.snapBackDistance 100
|
|
128 |
scroller.minThumbSize 16
|
|
129 |
|
|
130 |
arrowButton.upFormFile 'ScrollUp.xp.xpm'
|
|
131 |
arrowButton.enteredUpFormFile 'ScrollUp_entered.xp.xpm'
|
|
132 |
arrowButton.activeUpFormFile 'ScrollUp_active.xp.xpm'
|
|
133 |
arrowButton.disabledUpFormFile 'ScrollUp_disabled.xp.xpm'
|
|
134 |
|
|
135 |
arrowButton.downFormFile 'ScrollDn.xp.xpm'
|
|
136 |
arrowButton.enteredDownFormFile 'ScrollDn_entered.xp.xpm'
|
|
137 |
arrowButton.activeDownFormFile 'ScrollDn_active.xp.xpm'
|
|
138 |
arrowButton.disabledDownFormFile 'ScrollDn_disabled.xp.xpm'
|
|
139 |
|
|
140 |
arrowButton.leftFormFile 'ScrollLt.xp.xpm'
|
|
141 |
arrowButton.enteredLeftFormFile 'ScrollLt_entered.xp.xpm'
|
|
142 |
arrowButton.activeLeftFormFile 'ScrollLt_active.xp.xpm'
|
|
143 |
arrowButton.disabledLeftFormFile 'ScrollLt_disabled.xp.xpm'
|
|
144 |
|
|
145 |
arrowButton.rightFormFile 'ScrollRt.xp.xpm'
|
|
146 |
arrowButton.enteredRightFormFile 'ScrollRt_entered.xp.xpm'
|
|
147 |
arrowButton.activeRightFormFile 'ScrollRt_active.xp.xpm'
|
|
148 |
arrowButton.disabledRightFormFile 'ScrollRt_disabled.xp.xpm'
|
|
149 |
|
|
150 |
arrowButton.passiveLevel 0
|
|
151 |
arrowButton.activeLevel 0
|
3728
|
152 |
arrowButton.backgroundColor =scroller.viewBackground
|
|
153 |
arrowButton.activeBackgroundColor =scroller.viewBackground
|
3725
|
154 |
|
4311
|
155 |
noteBook.backgroundColor =lightenedViewGrey
|
|
156 |
noteBook.activeBackgroundColor =viewBackground
|
3944
|
157 |
noteBook.foregroundColor Color black
|
4311
|
158 |
noteBook.lightColor =darkenedViewGrey
|
|
159 |
noteBook.shadowColor =darkenedViewGrey
|
|
160 |
noteBook.passiveBackgroundColor =lightenedViewGrey
|
4302
|
161 |
|
4303
|
162 |
checkToggle.bitmapFile 'CheckOn10_xp.xpm'
|
4306
|
163 |
radioButton.passiveImageFile 'RadioOff_xp.xpm'
|
|
164 |
radioButton.activeImageFile 'RadioOn_xp.xpm'
|
4308
|
165 |
|
4310
|
166 |
noteBook.activeTabMarkerColor (Color red:100 green:78 blue:23)
|
4330
|
167 |
|
|
168 |
; label.foregroundColor (Color redByte:0 greenByte:70 blueByte:213)
|
|
169 |
; button.foregroundColor (Color black)
|
|
170 |
; radioButton.foregroundColor (Color black)
|
|
171 |
; checkBox.labelForegroundColor (Color black)
|
4331
|
172 |
|
|
173 |
; noteBook.foregroundColor (Color redByte:0 greenByte:70 blueByte:213)
|
4330
|
174 |
framedBox.foregroundColor (Color redByte:0 greenByte:70 blueByte:213)
|
4370
|
175 |
|
4373
|
176 |
infoBox.iconFile 'bitmaps/Information_XP.xpm'
|
4370
|
177 |
warningBox.iconFile 'bitmaps/Warning_XP.xpm'
|
4371
|
178 |
requestBox.iconFile 'bitmaps/Request_XP.xpm'
|
4373
|
179 |
errorBox.iconFile 'bitmaps/Error_XP.xpm'
|