|
28 | 28 |
|
29 | 29 | <Color x:Key="DefaultIconColor">#000000</Color>
|
30 | 30 |
|
| 31 | + <Color x:Key="TransparentColor">Transparent</Color> |
| 32 | + |
31 | 33 | <SolidColorBrush x:Key="BackgroundBrush" Color="{DynamicResource BackgroundColor}" Opacity="1" />
|
32 | 34 |
|
33 | 35 | <SolidColorBrush x:Key="ForegroundHighMidBrush" Color="{DynamicResource ForegroundColor}" Opacity="0.73" />
|
|
58 | 60 | <BoxShadows x:Key="ComboBoxDisabledBoxShadow">0 0.5 2.5 0 #26000000, 0 0 0 0.5 #08000000</BoxShadows>
|
59 | 61 | <BoxShadows x:Key="ToolTipBorderShadow">0 0 1 0 #66000000, 0 7 17 0 #30000000</BoxShadows>
|
60 | 62 | <Thickness x:Key="ButtonBorderThickness">0.6 0.6 0.6 1</Thickness>
|
61 |
| - <Thickness x:Key="ButtonBorderAccentThickness">0</Thickness> |
62 | 63 | <Thickness x:Key="ControlBorderThickness">0.6</Thickness>
|
63 |
| - <Thickness x:Key="ControlBorderAccentThickness">0</Thickness> |
64 | 64 | <Thickness x:Key="TabControlBorderThickness">0 0.6 0 0</Thickness>
|
65 | 65 | <Thickness x:Key="ToolTipBorderThickness">0</Thickness>
|
66 | 66 |
|
|
75 | 75 | <SolidColorBrush x:Key="DataGridItemBackgroundAlternating"
|
76 | 76 | Color="{DynamicResource ForegroundColor}" Opacity="0.04" />
|
77 | 77 |
|
78 |
| - <LinearGradientBrush x:Key="ControlBackgroundRecessedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
79 |
| - <GradientStop Offset="0" Color="{DynamicResource ControlBorderLowColor}" /> |
80 |
| - <GradientStop Offset="1" Color="{DynamicResource ControlBorderMidColor}" /> |
81 |
| - </LinearGradientBrush> |
82 |
| - |
83 |
| - <LinearGradientBrush x:Key="ControlBorderRaisedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
84 |
| - <GradientStop Offset="0" Color="{DynamicResource ControlBorderLowColor}" /> |
85 |
| - <GradientStop Offset="1" Color="{DynamicResource ControlBorderMidColor}" /> |
86 |
| - </LinearGradientBrush> |
87 |
| - <LinearGradientBrush x:Key="ControlBorderRecessedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
88 |
| - <GradientStop Offset="0" Color="{DynamicResource ControlBorderMidColor}" /> |
89 |
| - <GradientStop Offset="1" Color="{DynamicResource ControlBorderLowColor}" /> |
90 |
| - </LinearGradientBrush> |
91 |
| - |
92 |
| - <LinearGradientBrush x:Key="ControlBackgroundAccentRaisedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
93 |
| - <GradientStop Offset="0" Color="{StaticResource SystemAccentColorLight1}" /> |
94 |
| - <GradientStop Offset="1" Color="{StaticResource SystemAccentColor}" /> |
95 |
| - </LinearGradientBrush> |
96 |
| - <LinearGradientBrush x:Key="ControlBackgroundAccentRecessedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
97 |
| - <GradientStop Offset="0" Color="{StaticResource SystemAccentColor}" /> |
98 |
| - <GradientStop Offset="1" Color="{StaticResource SystemAccentColorDark1}" /> |
99 |
| - </LinearGradientBrush> |
| 78 | + <StaticResource x:Key="ControlBorderRaisedTopColor" ResourceKey="ControlBorderLowColor" /> |
| 79 | + <StaticResource x:Key="ControlBorderRaisedBottomColor" ResourceKey="ControlBorderMidColor" /> |
| 80 | + |
| 81 | + <StaticResource x:Key="ControlBorderRecessedTopColor" ResourceKey="ControlBorderMidColor" /> |
| 82 | + <StaticResource x:Key="ControlBorderRecessedBottomColor" ResourceKey="ControlBorderLowColor" /> |
| 83 | + |
| 84 | + <StaticResource x:Key="AccentButtonTopColor" ResourceKey="SystemAccentColorLight1" /> |
| 85 | + <StaticResource x:Key="AccentButtonBottomColor" ResourceKey="SystemAccentColor" /> |
| 86 | + |
| 87 | + <StaticResource x:Key="ControlBackgroundAccentRecessedTopColor" ResourceKey="SystemAccentColor" /> |
| 88 | + <StaticResource x:Key="ControlBackgroundAccentRecessedBottomColor" ResourceKey="SystemAccentColorDark1" /> |
| 89 | + |
| 90 | + <StaticResource x:Key="ControlBorderAccentColor" ResourceKey="TransparentColor" /> |
100 | 91 |
|
101 | 92 | <StaticResource x:Key="MenuFlyoutPresenterBorderBrush" ResourceKey="TransparentBrush" />
|
102 | 93 | <Thickness x:Key="MenuFlyoutPresenterBorderThickness">0</Thickness>
|
|
166 | 157 | <BoxShadows x:Key="ComboBoxDisabledBoxShadow">0 0.5 2.5 0 #26ffffff, 0 0 0 0.5 #08ffffff</BoxShadows>
|
167 | 158 | <BoxShadows x:Key="ToolTipBorderShadow">0 0 1 0 #ff000000</BoxShadows>
|
168 | 159 |
|
169 |
| - <Thickness x:Key="ButtonBorderThickness">0.6 1 0.6 0</Thickness> |
| 160 | + <Thickness x:Key="ButtonBorderThickness">0 1 0 0</Thickness> |
170 | 161 | <Thickness x:Key="ButtonBorderAccentThickness">0 1 0 0</Thickness>
|
171 | 162 | <Thickness x:Key="ControlBorderThickness">0 0.6 0 0</Thickness>
|
172 |
| - <Thickness x:Key="ControlBorderAccentThickness">0 0.6 0 0</Thickness> |
173 | 163 | <Thickness x:Key="TabControlBorderThickness">0 0.6 0 0.6</Thickness>
|
174 | 164 | <Thickness x:Key="ToolTipBorderThickness">0.6</Thickness>
|
175 | 165 |
|
|
182 | 172 | <SolidColorBrush x:Key="DataGridItemBackgroundAlternating"
|
183 | 173 | Color="{DynamicResource ForegroundColor}" Opacity="0.05" />
|
184 | 174 |
|
185 |
| - <LinearGradientBrush x:Key="ControlBackgroundRecessedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
186 |
| - <GradientStop Offset="0" Color="{DynamicResource ControlBorderLowColor}" /> |
187 |
| - <GradientStop Offset="1" Color="{DynamicResource ControlBorderMidColor}" /> |
188 |
| - </LinearGradientBrush> |
189 |
| - |
190 |
| - <LinearGradientBrush x:Key="ControlBorderRaisedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
191 |
| - <GradientStop Offset="0" Color="{DynamicResource ControlBorderMidColor}" /> |
192 |
| - <GradientStop Offset="1" Color="{DynamicResource ControlBorderLowColor}" /> |
193 |
| - </LinearGradientBrush> |
194 |
| - <LinearGradientBrush x:Key="ControlBorderRecessedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
195 |
| - <GradientStop Offset="0" Color="{DynamicResource ControlBorderLowColor}" /> |
196 |
| - <GradientStop Offset="1" Color="{DynamicResource ControlBorderMidColor}" /> |
197 |
| - </LinearGradientBrush> |
198 |
| - |
199 |
| - <LinearGradientBrush x:Key="ControlBackgroundAccentRaisedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
200 |
| - <GradientStop Offset="0" Color="{StaticResource SystemAccentColor}" /> |
201 |
| - <GradientStop Offset="1" Color="{StaticResource SystemAccentColorDark1}" /> |
202 |
| - </LinearGradientBrush> |
203 |
| - <LinearGradientBrush x:Key="ControlBackgroundAccentRecessedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
204 |
| - <GradientStop Offset="0" Color="{StaticResource SystemAccentColorLight1}" /> |
205 |
| - <GradientStop Offset="1" Color="{StaticResource SystemAccentColor}" /> |
206 |
| - </LinearGradientBrush> |
| 175 | + <StaticResource x:Key="ControlBorderRaisedTopColor" ResourceKey="ControlBorderMidColor" /> |
| 176 | + <StaticResource x:Key="ControlBorderRaisedBottomColor" ResourceKey="ControlBorderLowColor" /> |
| 177 | + |
| 178 | + <StaticResource x:Key="ControlBorderRecessedTopColor" ResourceKey="ControlBorderLowColor" /> |
| 179 | + <StaticResource x:Key="ControlBorderRecessedBottomColor" ResourceKey="ControlBorderMidColor" /> |
| 180 | + |
| 181 | + <StaticResource x:Key="AccentButtonTopColor" ResourceKey="SystemAccentColor" /> |
| 182 | + <StaticResource x:Key="AccentButtonBottomColor" ResourceKey="SystemAccentColorDark1" /> |
| 183 | + |
| 184 | + <StaticResource x:Key="ControlBackgroundAccentRecessedTopColor" ResourceKey="SystemAccentColorLight1" /> |
| 185 | + <StaticResource x:Key="ControlBackgroundAccentRecessedBottomColor" ResourceKey="SystemAccentColor" /> |
| 186 | + |
| 187 | + <StaticResource x:Key="ControlBorderAccentColor" ResourceKey="SystemAccentColorLight1" /> |
207 | 188 |
|
208 | 189 | <StaticResource x:Key="MenuFlyoutPresenterBorderBrush" ResourceKey="ControlBorderBrush" />
|
209 | 190 | <Thickness x:Key="MenuFlyoutPresenterBorderThickness">1</Thickness>
|
|
220 | 201 |
|
221 | 202 | <!-- TODO: Appkit buttons have DD at the bottom, EE at the top & fading -> try sub-pixel rendering (UseLayoutRounding) (s. `default button issues.psd` ... -->
|
222 | 203 |
|
| 204 | + <LinearGradientBrush x:Key="ControlBackgroundRecessedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
| 205 | + <GradientStop Offset="0" Color="{DynamicResource ControlBorderLowColor}" /> |
| 206 | + <GradientStop Offset="1" Color="{DynamicResource ControlBorderMidColor}" /> |
| 207 | + </LinearGradientBrush> |
| 208 | + |
| 209 | + <LinearGradientBrush x:Key="ControlBackgroundAccentRaisedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
| 210 | + <GradientStop Offset="0" Color="{DynamicResource AccentButtonTopColor}" /> |
| 211 | + <GradientStop Offset="1" Color="{DynamicResource AccentButtonBottomColor}" /> |
| 212 | + </LinearGradientBrush> |
| 213 | + |
| 214 | + <LinearGradientBrush x:Key="ButtonBackgroundAccentRecessedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
| 215 | + <GradientStop Offset="0" Color="{DynamicResource ControlBackgroundAccentRecessedTopColor}" /> |
| 216 | + <GradientStop Offset="1" Color="{DynamicResource ControlBackgroundAccentRecessedBottomColor}" /> |
| 217 | + </LinearGradientBrush> |
| 218 | + |
| 219 | + <LinearGradientBrush x:Key="ControlBorderRaisedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
| 220 | + <GradientStop Offset="0" Color="{DynamicResource ControlBorderRaisedTopColor}" /> |
| 221 | + <GradientStop Offset="1" Color="{DynamicResource ControlBorderRaisedBottomColor}" /> |
| 222 | + </LinearGradientBrush> |
| 223 | + |
| 224 | + <LinearGradientBrush x:Key="ControlBorderRecessedBrush" StartPoint="0%,0%" EndPoint="0%,100%"> |
| 225 | + <GradientStop Offset="0" Color="{DynamicResource ControlBorderRecessedTopColor}" /> |
| 226 | + <GradientStop Offset="1" Color="{DynamicResource ControlBorderRecessedBottomColor}" /> |
| 227 | + </LinearGradientBrush> |
| 228 | + |
223 | 229 | <CornerRadius x:Key="LayoutCornerRadius">5</CornerRadius>
|
224 | 230 | <CornerRadius x:Key="ControlCornerRadius">5</CornerRadius>
|
225 | 231 | <CornerRadius x:Key="SelectionCornerRadius">4</CornerRadius>
|
|
236 | 242 | <SolidColorBrush x:Key="ForegroundMidLowBrush" Color="{DynamicResource ForegroundColor}" Opacity="0.34" />
|
237 | 243 | <!-- <SolidColorBrush x:Key="ForegroundLowBrush" Color="{DynamicResource ForegroundColor}" Opacity="0.25" /> -->
|
238 | 244 |
|
| 245 | + <SolidColorBrush x:Key="SelectionInActiveWindow" Color="{DynamicResource ForegroundColor}" Opacity="0.15" /> |
| 246 | + |
239 | 247 | <SolidColorBrush x:Key="ControlForegroundAccentHighBrush" Color="{DynamicResource AccentForegroundColor}" />
|
| 248 | + <SolidColorBrush x:Key="ControlForegroundAccentInactiveHighBrush" Color="{DynamicResource ForegroundColor}" |
| 249 | + Opacity="0.85" /> |
240 | 250 |
|
241 | 251 | <SolidColorBrush x:Key="ControlBackgroundHighBrush" Color="{DynamicResource ControlBackgroundHighColor}" />
|
242 | 252 | <SolidColorBrush x:Key="ControlBackgroundMidBrush" Color="{DynamicResource ForegroundColor}" Opacity="0.1" />
|
|
245 | 255 | <SolidColorBrush x:Key="ControlBackgroundAccentHighBrush" Color="{StaticResource SystemAccentColor}" />
|
246 | 256 | <SolidColorBrush x:Key="ControlBackgroundAccentMidBrush" Color="{StaticResource SystemAccentColor}" Opacity="0.63" />
|
247 | 257 |
|
248 |
| - <SolidColorBrush x:Key="ControlBorderAccentBrush" Color="{DynamicResource SystemAccentColorLight1}" /> |
| 258 | + <SolidColorBrush x:Key="ControlBorderAccentBrush" Color="{DynamicResource ControlBorderAccentColor}" /> |
249 | 259 |
|
250 | 260 | <BoxShadows x:Key="ControlBackgroundRaisedShadow">2 2 3 -2 #bfbfbf</BoxShadows>
|
251 | 261 |
|
|
257 | 267 | <!-- Button Resources (& button-like parts of other controls) -->
|
258 | 268 | <Thickness x:Key="ButtonPadding">10 1.4 10 2.6</Thickness>
|
259 | 269 | <FontWeight x:Key="ButtonFontWeight">400</FontWeight>
|
260 |
| - <SolidColorBrush x:Key="ButtonBorderAccentBrush" Color="{DynamicResource SystemAccentColorLight1}" /> |
| 270 | + <SolidColorBrush x:Key="ButtonBorderAccentBrush" Color="{DynamicResource ControlBorderAccentColor}" /> |
261 | 271 |
|
262 | 272 | <!-- TODO: To be replaced by templated button control (accent colour with hard-coded gradient overlay) -->
|
263 | 273 | <VisualBrush x:Key="TempButtonAccentBackgroundPrecise" Stretch="Fill">
|
|
0 commit comments