1 ! Copyright (C) 2016 Nicolas PĂ©net.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: colors colors.constants colors.hex namespaces ;
8 HOOK: toolbar-background theme ( -- color )
9 HOOK: toolbar-button-pressed-background theme ( -- color )
11 HOOK: menu-background theme ( -- color )
12 HOOK: menu-border-color theme ( -- color )
14 HOOK: status-bar-background theme ( -- color )
15 HOOK: status-bar-foreground theme ( -- color )
17 HOOK: button-text-color theme ( -- color )
18 HOOK: button-clicked-text-color theme ( -- color )
20 HOOK: line-color theme ( -- color )
22 HOOK: column-title-background theme ( -- color )
24 HOOK: roll-button-rollover-border theme ( -- color )
25 HOOK: roll-button-selected-background theme ( -- color )
27 HOOK: source-files-color theme ( -- color )
28 HOOK: errors-color theme ( -- color )
29 HOOK: details-color theme ( -- color )
31 HOOK: debugger-color theme ( -- color )
32 HOOK: completion-color theme ( -- color )
34 HOOK: data-stack-color theme ( -- color )
35 HOOK: retain-stack-color theme ( -- color )
36 HOOK: call-stack-color theme ( -- color )
38 HOOK: title-bar-gradient theme ( -- color )
40 HOOK: popup-color theme ( -- color )
42 HOOK: object-color theme ( -- color )
43 HOOK: contents-color theme ( -- color )
45 HOOK: help-header-background theme ( -- color )
47 HOOK: thread-status-stopped-background theme ( -- color )
48 HOOK: thread-status-suspended-background theme ( -- color )
49 HOOK: thread-status-running-background theme ( -- color )
51 HOOK: thread-status-stopped-foreground theme ( -- color )
52 HOOK: thread-status-suspended-foreground theme ( -- color )
53 HOOK: thread-status-running-foreground theme ( -- color )
55 HOOK: error-summary-background theme ( -- color )
57 HOOK: content-background theme ( -- color )
58 HOOK: text-color theme ( -- color )
60 HOOK: link-color theme ( -- color )
61 HOOK: url-color theme ( -- color )
62 HOOK: title-color theme ( -- color )
63 HOOK: heading-color theme ( -- color )
64 HOOK: snippet-color theme ( -- color )
65 HOOK: output-color theme ( -- color )
66 HOOK: warning-background-color theme ( -- color )
67 HOOK: code-background-color theme ( -- color )
69 HOOK: tip-background-color theme ( -- color )
71 HOOK: prompt-background-color theme ( -- color )
73 HOOK: dim-color theme ( -- color )
74 HOOK: highlighted-word-color theme ( -- color )
75 HOOK: string-color theme ( -- color )
76 HOOK: stack-effect-color theme ( -- color )
78 HOOK: vocab-background-color theme ( -- color )
79 HOOK: vocab-border-color theme ( -- color )
81 HOOK: field-border-color theme ( -- color )
83 HOOK: selection-color theme ( -- color )
84 HOOK: panel-background-color theme ( -- color )
85 HOOK: focus-border-color theme ( -- color )
87 HOOK: labeled-border-color theme ( -- color )
89 SINGLETON: light-theme
91 M: light-theme toolbar-background COLOR: grey95 ;
92 M: light-theme toolbar-button-pressed-background COLOR: dark-gray ;
94 M: light-theme menu-background COLOR: grey95 ;
95 M: light-theme menu-border-color COLOR: grey75 ;
97 M: light-theme status-bar-background COLOR: FactorDarkSlateBlue ;
98 M: light-theme status-bar-foreground COLOR: white ;
100 M: light-theme button-text-color COLOR: FactorDarkSlateBlue ;
101 M: light-theme button-clicked-text-color COLOR: white ;
103 M: light-theme line-color COLOR: grey75 ;
105 M: light-theme column-title-background COLOR: grey95 ;
107 M: light-theme roll-button-rollover-border COLOR: gray50 ;
108 M: light-theme roll-button-selected-background COLOR: dark-gray ;
110 M: light-theme source-files-color COLOR: MediumSeaGreen ;
111 M: light-theme errors-color COLOR: chocolate1 ;
112 M: light-theme details-color COLOR: SteelBlue3 ;
114 M: light-theme debugger-color COLOR: chocolate1 ;
115 M: light-theme completion-color COLOR: magenta ;
117 M: light-theme data-stack-color COLOR: DodgerBlue ;
118 M: light-theme retain-stack-color COLOR: HotPink ;
119 M: light-theme call-stack-color COLOR: GreenYellow ;
121 M: light-theme title-bar-gradient { COLOR: white COLOR: grey90 } ;
123 M: light-theme popup-color COLOR: yellow2 ;
125 M: light-theme object-color COLOR: aquamarine2 ;
126 M: light-theme contents-color COLOR: orchid2 ;
128 M: light-theme help-header-background HEXCOLOR: F4EFD9 ;
130 M: light-theme thread-status-stopped-background HEXCOLOR: F4D9D9 ;
131 M: light-theme thread-status-suspended-background HEXCOLOR: F4EAD9 ;
132 M: light-theme thread-status-running-background HEXCOLOR: EDF4D9 ;
134 M: light-theme thread-status-stopped-foreground HEXCOLOR: F42300 ;
135 M: light-theme thread-status-suspended-foreground HEXCOLOR: F37B00 ;
136 M: light-theme thread-status-running-foreground HEXCOLOR: 3FCA00 ;
138 M: light-theme error-summary-background HEXCOLOR: F4D9D9 ;
140 M: light-theme content-background COLOR: white ;
141 M: light-theme text-color COLOR: black ;
143 M: light-theme link-color COLOR: DodgerBlue4 ;
144 M: light-theme url-color COLOR: DodgerBlue4 ;
145 M: light-theme title-color COLOR: gray20 ;
146 M: light-theme heading-color COLOR: FactorDarkSlateBlue ;
147 M: light-theme snippet-color COLOR: solarized-orange ;
148 M: light-theme output-color COLOR: solarized-orange ;
149 M: light-theme warning-background-color T{ rgba f 1 0.7 0.7 1 } ;
150 M: light-theme code-background-color COLOR: FactorLightTan ;
152 M: light-theme tip-background-color COLOR: lavender ;
154 M: light-theme prompt-background-color T{ rgba f 1 0.7 0.7 1 } ;
156 M: light-theme dim-color COLOR: solarized-cyan ;
157 M: light-theme highlighted-word-color COLOR: solarized-green ;
158 M: light-theme string-color COLOR: solarized-magenta ;
159 M: light-theme stack-effect-color COLOR: solarized-orange ;
161 M: light-theme vocab-background-color COLOR: FactorLightTan ;
162 M: light-theme vocab-border-color COLOR: FactorDarkTan ;
164 M: light-theme field-border-color COLOR: gray ;
166 M: light-theme selection-color T{ rgba f 0.8 0.8 1.0 1.0 } ;
167 M: light-theme panel-background-color T{ rgba f 0.7843 0.7686 0.7176 1.0 } ;
168 M: light-theme focus-border-color COLOR: dark-gray ;
170 M: light-theme labeled-border-color COLOR: grey85 ;
172 SINGLETON: dark-theme
174 M: dark-theme toolbar-background COLOR: solarized-base02 ;
175 M: dark-theme toolbar-button-pressed-background COLOR: solarized-base0 ;
177 M: dark-theme menu-background COLOR: solarized-base02 ;
178 M: dark-theme menu-border-color COLOR: solarized-base01 ;
180 M: dark-theme status-bar-background COLOR: FactorDarkSlateBlue ;
181 M: dark-theme status-bar-foreground COLOR: white ;
183 M: dark-theme button-text-color COLOR: solarized-base1 ;
184 M: dark-theme button-clicked-text-color COLOR: white ;
186 M: dark-theme line-color COLOR: solarized-base01 ;
188 M: dark-theme column-title-background HEXCOLOR: 2F4D5B ;
190 M: dark-theme roll-button-rollover-border COLOR: gray50 ;
191 M: dark-theme roll-button-selected-background COLOR: dark-gray ;
193 M: dark-theme source-files-color COLOR: solarized-green ;
194 M: dark-theme errors-color COLOR: solarized-red ;
195 M: dark-theme details-color COLOR: solarized-blue ;
197 M: dark-theme debugger-color COLOR: solarized-red ;
198 M: dark-theme completion-color COLOR: solarized-violet ;
200 M: dark-theme data-stack-color COLOR: solarized-blue ;
201 M: dark-theme retain-stack-color COLOR: solarized-magenta ;
202 M: dark-theme call-stack-color COLOR: solarized-green ;
204 M: dark-theme title-bar-gradient { COLOR: solarized-base01 COLOR: solarized-base02 } ;
206 M: dark-theme popup-color COLOR: solarized-yellow ;
208 M: dark-theme object-color COLOR: solarized-cyan ;
209 M: dark-theme contents-color COLOR: solarized-magenta ;
211 M: dark-theme help-header-background HEXCOLOR: 2F4D5B ;
213 M: dark-theme thread-status-stopped-background HEXCOLOR: 492d33 ;
214 M: dark-theme thread-status-suspended-background HEXCOLOR: 3c4a24 ;
215 M: dark-theme thread-status-running-background HEXCOLOR: 2c4f24 ;
217 M: dark-theme thread-status-stopped-foreground COLOR: solarized-red ;
218 M: dark-theme thread-status-suspended-foreground COLOR: solarized-yellow ;
219 M: dark-theme thread-status-running-foreground COLOR: solarized-green ;
221 M: dark-theme error-summary-background HEXCOLOR: 6E2E32 ;
223 M: dark-theme content-background COLOR: solarized-base03 ;
224 M: dark-theme text-color COLOR: grey75 ;
226 M: dark-theme link-color COLOR: solarized-blue ;
227 M: dark-theme url-color COLOR: solarized-blue ;
228 M: dark-theme title-color COLOR: grey75 ;
229 M: dark-theme heading-color COLOR: grey75 ;
230 M: dark-theme snippet-color COLOR: solarized-orange ;
231 M: dark-theme output-color COLOR: solarized-orange ;
232 M: dark-theme warning-background-color HEXCOLOR: 6E2E32 ;
233 M: dark-theme code-background-color HEXCOLOR: 2F4D5B ;
235 M: dark-theme tip-background-color HEXCOLOR: 2F4D5B ;
237 M: dark-theme prompt-background-color HEXCOLOR: 922f31 ;
239 M: dark-theme dim-color COLOR: solarized-cyan ;
240 M: dark-theme highlighted-word-color COLOR: solarized-green ;
241 M: dark-theme string-color COLOR: solarized-magenta ;
242 M: dark-theme stack-effect-color COLOR: solarized-orange ;
244 M: dark-theme vocab-background-color COLOR: solarized-base01 ;
245 M: dark-theme vocab-border-color COLOR: solarized-base01 ;
247 M: dark-theme field-border-color COLOR: solarized-base01 ;
249 M: dark-theme selection-color COLOR: solarized-base01 ;
250 M: dark-theme panel-background-color T{ rgba f 0.7843 0.7686 0.7176 1.0 } ;
251 M: dark-theme focus-border-color COLOR: solarized-base01 ;
253 M: dark-theme labeled-border-color COLOR: solarized-base01 ;
255 light-theme theme set-global