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