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