6950
|
1 |
; View defaultStyle:#macosx_yosemite
|
|
2 |
;
|
|
3 |
; how ugly!
|
|
4 |
; mac is looking more and more like windows8!
|
|
5 |
;
|
|
6 |
; $Header$
|
|
7 |
|
|
8 |
ToolbarIconLibrary (Smalltalk at:#ToolbarIconLibrary put:(Smalltalk at:#MacOSX2ToolbarIconLibrary))
|
|
9 |
|
|
10 |
viewGrey ?(Color rgbValue:16rF2F2F5)
|
|
11 |
viewLightGrey Color white
|
|
12 |
|
8604
|
13 |
magentaT (Color rgbValue:16rE01476)
|
|
14 |
magentaBrightT (Color rgbValue:16rFBE1ED)
|
|
15 |
|
6950
|
16 |
#include 'macosx.style'
|
|
17 |
|
|
18 |
name #macosx_yosemite
|
|
19 |
|
|
20 |
ToolbarIconLibrary (Smalltalk at:#ToolbarIconLibrary put:(Smalltalk at:#MacOSX2ToolbarIconLibrary))
|
|
21 |
viewGrey (Color rgbValue:16rF2F2F5)
|
|
22 |
halfLightColor =viewGrey
|
|
23 |
|
|
24 |
;
|
|
25 |
; unfinished
|
|
26 |
;
|
|
27 |
|
|
28 |
comment 'OSX Yosemite lookalike (unfinished)'
|
6980
|
29 |
previewFileName 'viewStyleSample_macosx_yosemite.png'
|
6950
|
30 |
|
|
31 |
#if (Language == #german) or:[Language == #de]
|
|
32 |
comment 'an MacOSX Yosemite angelehnter Stil (unvollständig)'
|
|
33 |
#endif
|
|
34 |
|
|
35 |
#if (Language == #french) or:[Language == #fr]
|
|
36 |
comment 'Un style qui résemble MacOSX Yosemite (incomplet)'
|
|
37 |
#endif
|
|
38 |
|
6977
|
39 |
selection.backgroundColor (Color white)
|
|
40 |
; selection.backgroundColor (Color rgbValue:16rf0f1f4)
|
|
41 |
; selection.hilightBackgroundColor (Color rgbValue:16rf0f1f4)
|
8608
|
42 |
#if ((Smalltalk at:#'Expecco::ExpeccoPreferences') notNil and:[(Smalltalk at:#'Expecco::ExpeccoPreferences') introStyle endsWith:'_T'])
|
8604
|
43 |
selection.hilightBackgroundColorNoFocus =magentaBrightT
|
8602
|
44 |
#endif
|
6977
|
45 |
|
6950
|
46 |
menu.iconIndicationOn.bitmap (ToolbarIconLibrary checkToggleOnIcon)
|
|
47 |
menu.iconIndicationOff.bitmap (ToolbarIconLibrary checkToggleOffIcon)
|
|
48 |
menu.iconDisabledIndicationOn.bitmapFile (ToolbarIconLibrary checkToggleOnDisabledIcon)
|
|
49 |
menu.iconDisabledIndicationOff.bitmapFile (ToolbarIconLibrary checkToggleOffDisabledIcon)
|
|
50 |
menu.iconRadioOn.bitmap (ToolbarIconLibrary radioOnIcon)
|
|
51 |
menu.iconRadioOff.bitmap (ToolbarIconLibrary radioOffIcon)
|
|
52 |
menu.iconDisabledRadioOn.bitmap (ToolbarIconLibrary radioOnDisabledIcon)
|
|
53 |
menu.iconDisabledRadioOff.bitmap (ToolbarIconLibrary radioOffDisabledIcon)
|
8604
|
54 |
menu.backgroundColor =viewGrey
|
7031
|
55 |
; menu.backgroundColor (Color grey:95)
|
8608
|
56 |
#if ((Smalltalk at:#'Expecco::ExpeccoPreferences') notNil and:[(Smalltalk at:#'Expecco::ExpeccoPreferences') introStyle endsWith:'_T'])
|
8604
|
57 |
menu.enteredForegoundColor (Color rgbValue:16rd7dce1)
|
|
58 |
#endif
|
6950
|
59 |
|
|
60 |
comboView.downForm (ToolbarIconLibrary scrollDownOffIcon)
|
|
61 |
comboView.disabledDownForm (ToolbarIconLibrary scrollDownOffIcon)
|
|
62 |
comboView.enteredDownForm (ToolbarIconLibrary scrollDownOffEntered2Icon)
|
|
63 |
comboView.activeDownForm (ToolbarIconLibrary scrollDownActiveIcon)
|
|
64 |
|
|
65 |
radioButton.passiveImage (ToolbarIconLibrary radioOffIcon)
|
|
66 |
radioButton.activeImage (ToolbarIconLibrary radioOnIcon)
|
|
67 |
radioButton.enteredPassiveImage (ToolbarIconLibrary radioOffIcon)
|
|
68 |
radioButton.enteredActiveImage (ToolbarIconLibrary radioOnIcon)
|
|
69 |
radioButton.disabledPassiveImage (ToolbarIconLibrary radioOffDisabledIcon)
|
|
70 |
radioButton.disabledActiveImage (ToolbarIconLibrary radioOnDisabledIcon)
|
|
71 |
checkToggle.disabledActiveImage (ToolbarIconLibrary checkToggleOnDisabledIcon)
|
|
72 |
checkToggle.disabledPassiveImage (ToolbarIconLibrary checkToggleOffDisabledIcon)
|
|
73 |
checkToggle.activeImage (ToolbarIconLibrary checkToggleOnIcon)
|
|
74 |
checkToggle.passiveImage (ToolbarIconLibrary checkToggleOffIcon)
|
|
75 |
checkToggle.enteredPassiveImage (ToolbarIconLibrary checkToggleOffEnteredIcon)
|
|
76 |
checkToggle.enteredActiveImage (ToolbarIconLibrary checkToggleOnEnteredIcon)
|
|
77 |
;
|
|
78 |
menu.iconIndicationOn (ToolbarIconLibrary checkToggleOnIcon)
|
|
79 |
menu.iconIndicationOff (ToolbarIconLibrary checkToggleOffIcon)
|
|
80 |
menu.iconDisabledIndicationOn (ToolbarIconLibrary checkToggleOffDisabledIcon)
|
|
81 |
menu.iconDisabledIndicationOff (ToolbarIconLibrary checkToggleOffIcon)
|
|
82 |
|
6969
|
83 |
button.style #MacOSX
|
|
84 |
button.borderStyle #MacFlatButtonBorder
|
6950
|
85 |
button.borderWidth 0
|
6977
|
86 |
|
|
87 |
button.level 0
|
6950
|
88 |
button.activeLevel 0
|
|
89 |
button.passiveLevel 0
|
6977
|
90 |
button.enteredLevel 0
|
|
91 |
button.ignoreLevel true
|
6950
|
92 |
|
6969
|
93 |
button.activeBackgroundColor1 (Color rgbValue:16r6EB2F7)
|
|
94 |
button.activeBackgroundColor2 (Color rgbValue:16r2A7FFB)
|
|
95 |
button.activeBackgroundColor (GradientBackground vertical:(Color rgbValue:16r6EB2F7) to:(Color rgbValue:16r2A7FFB))
|
|
96 |
|
6983
|
97 |
; button.backgroundColor Color white
|
|
98 |
button.passiveBackgroundColor1 (Color rgbValue:16rFFFFFF)
|
|
99 |
button.passiveBackgroundColor2 (Color rgbValue:16rF2F2F2)
|
|
100 |
button.passiveBackgroundColor (GradientBackground vertical:(Color rgbValue:16rF2F2F2) to:(Color rgbValue:16rFFFFFF))
|
6969
|
101 |
|
|
102 |
;button.passiveBorderColor Color white
|
6983
|
103 |
; button.activeBorderColor =button.activeBackgroundColor2
|
|
104 |
button.passiveBorderColor nil
|
6969
|
105 |
|
|
106 |
; ((GradientBackground vertical:(Color rgbValue:16r6EB2F7) to:(Color rgbValue:16r2A7FFB)) usedLength:24)
|
|
107 |
;button.enteredBackgroundColor ((GradientBackground vertical:(Color rgbValue:16rEBF3FB) to:(Color rgbValue:16rDCEBFB)) usedLength:24)
|
|
108 |
;button.activeBackgroundColor ((GradientBackground vertical:(Color rgbValue:16rDAEBFB) to:(Color rgbValue:16rC3E0FB)) usedLength:24)
|
|
109 |
; button.activeForegroundColor (Color white)
|
|
110 |
|
|
111 |
;button.frameColor (Color redByte:16rAC greenByte:16rAC blueByte:16rAC)
|
|
112 |
;button.enteredFrameColor (Color red:50 green:70 blue:92)
|
|
113 |
;button.activeFrameColor (Color red:34 green:62 blue:90)
|
|
114 |
;button.enteredBackgroundColor ((GradientBackground vertical:(Color rgbValue:16rEBF3FB) to:(Color rgbValue:16rDCEBFB)) usedLength:24)
|
|
115 |
;button.activeBackgroundColor ((GradientBackground vertical:(Color rgbValue:16rDAEBFB) to:(Color rgbValue:16rC3E0FB)) usedLength:24)
|
|
116 |
;button.activeForegroundColor (Color black)
|
6950
|
117 |
|
6970
|
118 |
arrowButton.upForm [ToolbarIconLibrary scrollUpIcon]
|
|
119 |
arrowButton.enteredUpForm [ToolbarIconLibrary scrollUpEnteredIcon]
|
|
120 |
arrowButton.activeUpForm [ToolbarIconLibrary scrollUpActiveIcon]
|
|
121 |
arrowButton.disabledUpForm [ToolbarIconLibrary scrollUpDisabledIcon]
|
|
122 |
|
|
123 |
arrowButton.downForm [ToolbarIconLibrary scrollDownIcon]
|
|
124 |
arrowButton.enteredDownForm [ToolbarIconLibrary scrollDownEnteredIcon]
|
|
125 |
arrowButton.activeDownForm [ToolbarIconLibrary scrollDownActiveIcon]
|
|
126 |
arrowButton.disabledDownForm [ToolbarIconLibrary scrollDownDisabledIcon]
|
|
127 |
|
|
128 |
arrowButton.leftForm [ToolbarIconLibrary scrollLeftIcon]
|
|
129 |
arrowButton.enteredLeftForm [ToolbarIconLibrary scrollLeftEnteredIcon]
|
|
130 |
arrowButton.activeLeftForm [ToolbarIconLibrary scrollLeftActiveIcon]
|
|
131 |
arrowButton.disabledLeftForm [ToolbarIconLibrary scrollLeftDisabledIcon]
|
|
132 |
|
|
133 |
arrowButton.rightForm [ToolbarIconLibrary scrollRightIcon]
|
|
134 |
arrowButton.enteredRightForm [ToolbarIconLibrary scrollRightEnteredIcon]
|
|
135 |
arrowButton.activeRightForm [ToolbarIconLibrary scrollRightActiveIcon]
|
|
136 |
arrowButton.disabledRightForm [ToolbarIconLibrary scrollRightDisabledIcon]
|
|
137 |
|
6977
|
138 |
scroller.viewBackground (Color rgbValue:16rfafafa) "/ Color white
|
7051
|
139 |
; scrollBar.hideIfPointerOutside true
|
6998
|
140 |
scrollableView.level 0
|
|
141 |
scrolledView.level 0
|
6972
|
142 |
|
6970
|
143 |
arrowButton.backgroundColor =scroller.viewBackground
|
|
144 |
arrowButton.activeBackgroundColor =scroller.viewBackground
|
|
145 |
arrowButton.enteredBackgroundColor =scroller.viewBackground
|
|
146 |
|
8600
|
147 |
; button.enteredBackgroundColor (Color grey:85)
|
8608
|
148 |
#if ((Smalltalk at:#'Expecco::ExpeccoPreferences') notNil and:[(Smalltalk at:#'Expecco::ExpeccoPreferences') introStyle endsWith:'_T'])
|
8604
|
149 |
menu.enteredBackgroundColor =viewGrey
|
|
150 |
menu.enteredForegroundColor =magentaT
|
|
151 |
menu.hilightBackgroundColor =magentaT
|
8602
|
152 |
menu.hilightForegroundColor Color white
|
8604
|
153 |
menu.selectionBackgroundColor =magentaT
|
|
154 |
menu.selectionForegroundColor Color white
|
|
155 |
menu.activeBackgroundColor =magentaT
|
|
156 |
menu.activeForegroundColor Color white
|
8602
|
157 |
#else
|
8600
|
158 |
menu.enteredBackgroundColor (Color grey:85)
|
|
159 |
menu.enteredForegroundColor (Color black)
|
8602
|
160 |
#endif
|
|
161 |
|
8600
|
162 |
menu.enteredLevel 0
|
|
163 |
menu.buttonEnteredLevel 0
|
|
164 |
menu.ignoreIsButton true
|
|
165 |
|
6983
|
166 |
comboView.downForm [ToolbarIconLibrary comboViewIcon]
|
|
167 |
comboView.disabledDownForm [ToolbarIconLibrary comboViewDisabledIcon]
|
|
168 |
comboView.enteredDownForm [ToolbarIconLibrary comboViewEnteredIcon]
|
|
169 |
comboView.activeDownForm [ToolbarIconLibrary comboViewActiveIcon]
|
|
170 |
|
6998
|
171 |
variablePanel.barHeight 8
|
|
172 |
variablePanel.barWidth 8
|
|
173 |
variablePanel.minBarHeight 8
|
8529
|
174 |
variablePanel.showHandleWhenEntered true
|
6998
|
175 |
|
7017
|
176 |
framedBox.3DFrame false
|
|
177 |
framedBox.frameColor Color grey
|
|
178 |
;; framedBox.MacRoundFrame true
|
|
179 |
|
|
180 |
;;
|
6950
|
181 |
;; no: that is really too ugly
|
|
182 |
;; activeHelp.backgroundColor (Color grey:95)
|
|
183 |
activeHelp.borderColor (Color grey:70)
|
8378
|
184 |
activeHelp.backgroundColor (Color grey:98)
|
8494
|
185 |
activeHelp.font (Font family:'helvetica' face:'roman' style:'medium' size:10)
|
8378
|
186 |
|
7082
|
187 |
dataSet.labelView.backgroundColor (Color rgbValue:16rF2F2F2)
|
|
188 |
|
7635
|
189 |
launcher.editorLevel 0
|
8044
|
190 |
|
8608
|
191 |
;; #if ((Smalltalk at:#'Expecco::ExpeccoPreferences') notNil and:[(Smalltalk at:#'Expecco::ExpeccoPreferences') introStyle endsWith:'_T'])
|
8605
|
192 |
;; textCursor.noFocusForegroundColor =magentaBrightT
|
|
193 |
;; #else
|
|
194 |
textCursor.noFocusForegroundColor (Color gray:70)
|
|
195 |
;; #endif
|
|
196 |
|
|
197 |
;; textCursor.noFocusForegroundColor (Color white)
|