Skip to content

Commit 9a1e709

Browse files
committed
freeze light/dark brushes
1 parent 62e721c commit 9a1e709

File tree

2 files changed

+45
-47
lines changed

2 files changed

+45
-47
lines changed
Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3-
>
4-
5-
<!-- plan is to add all of the light/dark specific brushes, quite granular at first. can then consolodate any repition later on if necessary -->
3+
xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options">
64

75
<Color x:Key="ValidationErrorColor">#f44336</Color>
86
<SolidColorBrush x:Key="ValidationErrorBrush" Color="{StaticResource ValidationErrorColor}"/>
9-
10-
<SolidColorBrush x:Key="MaterialDesignBackground" Color="#FF000000"/>
11-
<SolidColorBrush x:Key="MaterialDesignPaper" Color="#FF37474f"/>
12-
<SolidColorBrush x:Key="MaterialDesignBody" Color="#DDFFFFFF"/>
13-
<SolidColorBrush x:Key="MaterialDesignBodyLight" Color="#89FFFFFF"/>
14-
<SolidColorBrush x:Key="MaterialDesignColumnHeader" Color="#BCFFFFFF"/><!-- 74% -->
15-
16-
<SolidColorBrush x:Key="MaterialDesignCheckBoxOff" Color="#89FFFFFF" />
17-
<SolidColorBrush x:Key="MaterialDesignCheckBoxDisabled" Color="#FF647076" />
18-
19-
<SolidColorBrush x:Key="MaterialDesignTextBoxBorder" Color="#89FFFFFF" />
20-
<SolidColorBrush x:Key="MaterialDesignDivider" Color="#1FFFFFFF" /><!-- 12% -->
21-
<SolidColorBrush x:Key="MaterialDesignSelection" Color="#757575" />
22-
23-
<SolidColorBrush x:Key="MaterialDesignFlatButtonClick" Color="#757575" />
24-
<SolidColorBrush x:Key="MaterialDesignFlatButtonRipple" Color="#FFB6B6B6" />
25-
26-
<SolidColorBrush x:Key="MaterialDesignToolTipBackground" Color="#eeeeee" />
27-
28-
<SolidColorBrush x:Key="MaterialDesignChipBackground" Color="#FF2E3C43" />
7+
8+
<SolidColorBrush x:Key="MaterialDesignBackground" Color="#FF000000" po:Freeze="True" />
9+
<SolidColorBrush x:Key="MaterialDesignPaper" Color="#FF37474f" po:Freeze="True" />
10+
<SolidColorBrush x:Key="MaterialDesignBody" Color="#DDFFFFFF" po:Freeze="True" />
11+
<SolidColorBrush x:Key="MaterialDesignBodyLight" Color="#89FFFFFF" po:Freeze="True" />
12+
<SolidColorBrush x:Key="MaterialDesignColumnHeader" Color="#BCFFFFFF" po:Freeze="True" /><!-- 74% -->
13+
14+
<SolidColorBrush x:Key="MaterialDesignCheckBoxOff" Color="#89FFFFFF" po:Freeze="True" />
15+
<SolidColorBrush x:Key="MaterialDesignCheckBoxDisabled" Color="#FF647076" po:Freeze="True" />
16+
17+
<SolidColorBrush x:Key="MaterialDesignTextBoxBorder" Color="#89FFFFFF" po:Freeze="True" />
18+
<SolidColorBrush x:Key="MaterialDesignDivider" Color="#1FFFFFFF" po:Freeze="True" /><!-- 12% -->
19+
<SolidColorBrush x:Key="MaterialDesignSelection" Color="#757575" po:Freeze="True" />
20+
21+
<SolidColorBrush x:Key="MaterialDesignFlatButtonClick" Color="#757575" po:Freeze="True" />
22+
<SolidColorBrush x:Key="MaterialDesignFlatButtonRipple" Color="#FFB6B6B6" po:Freeze="True" />
23+
24+
<SolidColorBrush x:Key="MaterialDesignToolTipBackground" Color="#eeeeee" po:Freeze="True" />
25+
26+
<SolidColorBrush x:Key="MaterialDesignChipBackground" Color="#FF2E3C43" po:Freeze="True" />
2927

3028
</ResourceDictionary>
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3+
xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options">
34

4-
<!-- plan is to add all of the light/dark specific brushes, quite granular at first. can then consolodate any repition later on if necessary -->
55
<Color x:Key="ValidationErrorColor">#f44336</Color>
6-
<SolidColorBrush x:Key="ValidationErrorBrush" Color="{StaticResource ValidationErrorColor}"/>
7-
8-
<SolidColorBrush x:Key="MaterialDesignBackground" Color="#FFFFFFFF"/>
9-
<SolidColorBrush x:Key="MaterialDesignPaper" Color="#FFfafafa"/>
10-
<SolidColorBrush x:Key="MaterialDesignBody" Color="#DD000000"/>
11-
<SolidColorBrush x:Key="MaterialDesignBodyLight" Color="#89000000"/>
12-
<SolidColorBrush x:Key="MaterialDesignColumnHeader" Color="#BC000000"/> <!-- 74% -->
13-
14-
<SolidColorBrush x:Key="MaterialDesignCheckBoxOff" Color="#89000000" />
15-
<SolidColorBrush x:Key="MaterialDesignCheckBoxDisabled" Color="#FFBDBDBD" />
16-
17-
<SolidColorBrush x:Key="MaterialDesignTextBoxBorder" Color="#89000000" />
18-
<SolidColorBrush x:Key="MaterialDesignDivider" Color="#1F000000" /> <!-- 12% -->
19-
<SolidColorBrush x:Key="MaterialDesignSelection" Color="#FFDeDeDe" />
20-
21-
<SolidColorBrush x:Key="MaterialDesignFlatButtonClick" Color="#FFDeDeDe" />
22-
<SolidColorBrush x:Key="MaterialDesignFlatButtonRipple" Color="#FFB6B6B6" />
23-
24-
<SolidColorBrush x:Key="MaterialDesignToolTipBackground" Color="#757575" />
25-
26-
<SolidColorBrush x:Key="MaterialDesignChipBackground" Color="#12000000" />
27-
6+
<SolidColorBrush x:Key="ValidationErrorBrush" Color="{StaticResource ValidationErrorColor}" po:Freeze="True" />
7+
8+
<SolidColorBrush x:Key="MaterialDesignBackground" Color="#FFFFFFFF" po:Freeze="True" />
9+
<SolidColorBrush x:Key="MaterialDesignPaper" Color="#FFfafafa" po:Freeze="True" />
10+
<SolidColorBrush x:Key="MaterialDesignBody" Color="#DD000000" po:Freeze="True" />
11+
<SolidColorBrush x:Key="MaterialDesignBodyLight" Color="#89000000" po:Freeze="True" />
12+
<SolidColorBrush x:Key="MaterialDesignColumnHeader" Color="#BC000000" po:Freeze="True" /> <!-- 74% -->
13+
14+
<SolidColorBrush x:Key="MaterialDesignCheckBoxOff" Color="#89000000" po:Freeze="True" />
15+
<SolidColorBrush x:Key="MaterialDesignCheckBoxDisabled" Color="#FFBDBDBD" po:Freeze="True" />
16+
17+
<SolidColorBrush x:Key="MaterialDesignTextBoxBorder" Color="#89000000" po:Freeze="True" />
18+
<SolidColorBrush x:Key="MaterialDesignDivider" Color="#1F000000" po:Freeze="True" /> <!-- 12% -->
19+
<SolidColorBrush x:Key="MaterialDesignSelection" Color="#FFDeDeDe" po:Freeze="True" />
20+
21+
<SolidColorBrush x:Key="MaterialDesignFlatButtonClick" Color="#FFDeDeDe" po:Freeze="True" />
22+
<SolidColorBrush x:Key="MaterialDesignFlatButtonRipple" Color="#FFB6B6B6" po:Freeze="True" />
23+
24+
<SolidColorBrush x:Key="MaterialDesignToolTipBackground" Color="#757575" po:Freeze="True" />
25+
26+
<SolidColorBrush x:Key="MaterialDesignChipBackground" Color="#12000000" po:Freeze="True" />
27+
2828
</ResourceDictionary>

0 commit comments

Comments
 (0)