Skip to content

Commit c5cbf62

Browse files
authored
fix colors regressed from old styles (#4227)
1 parent 3a84856 commit c5cbf62

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

dev/CommonStyles/Common_themeresources.xaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
<Thickness x:Key="TextControlBorderThemeThickness">1</Thickness>
1616
<Thickness x:Key="TextControlBorderThemeThicknessFocused">1,1,1,2</Thickness>
1717
<Thickness x:Key="TextControlThemePadding">10,6,6,5</Thickness>
18+
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{StaticResource SolidBackgroundFillColorBase}" />
19+
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" />
1820
</ResourceDictionary>
1921

2022
<ResourceDictionary x:Key="Light">
@@ -25,6 +27,8 @@
2527
<Thickness x:Key="TextControlBorderThemeThickness">1</Thickness>
2628
<Thickness x:Key="TextControlBorderThemeThicknessFocused">1,1,1,2</Thickness>
2729
<Thickness x:Key="TextControlThemePadding">10,6,6,5</Thickness>
30+
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{StaticResource SolidBackgroundFillColorBase}" />
31+
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" />
2832
</ResourceDictionary>
2933

3034
<ResourceDictionary x:Key="HighContrast">
@@ -35,6 +39,8 @@
3539
<Thickness x:Key="TextControlBorderThemeThickness">1</Thickness>
3640
<Thickness x:Key="TextControlBorderThemeThicknessFocused">2</Thickness>
3741
<Thickness x:Key="TextControlThemePadding">10,6,6,5</Thickness>
42+
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{ThemeResource SystemColorWindowColor}" />
43+
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" />
3844
</ResourceDictionary>
3945
</ResourceDictionary.ThemeDictionaries>
4046

dev/CommonStyles/Common_themeresources_any.xaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,6 @@
204204
<SolidColorBrush x:Key="SystemFillColorCautionBackgroundBrush" Color="{StaticResource SystemFillColorCautionBackground}" />
205205
<SolidColorBrush x:Key="SystemFillColorCriticalBackgroundBrush" Color="{StaticResource SystemFillColorCriticalBackground}" />
206206
<SolidColorBrush x:Key="SystemFillColorNeutralBackgroundBrush" Color="{StaticResource SystemFillColorNeutralBackground}" />
207-
208-
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{StaticResource SolidBackgroundFillColorBase}" />
209-
210-
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" />
211-
212207
<!-- Elevation border brushes-->
213208

214209
<LinearGradientBrush x:Key="ControlElevationBorderBrush" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,3">
@@ -438,10 +433,6 @@
438433
<SolidColorBrush x:Key="SystemFillColorCriticalBackgroundBrush" Color="{StaticResource SystemFillColorCriticalBackground}" />
439434
<SolidColorBrush x:Key="SystemFillColorNeutralBackgroundBrush" Color="{StaticResource SystemFillColorNeutralBackground}" />
440435

441-
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{StaticResource SolidBackgroundFillColorBase}" />
442-
443-
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" />
444-
445436
<!-- Elevation border brushes-->
446437

447438
<LinearGradientBrush x:Key="ControlElevationBorderBrush" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,3">
@@ -574,10 +565,6 @@
574565
<SolidColorBrush x:Key="SystemFillColorCriticalBackgroundBrush" Color="{ThemeResource SystemColorWindowColor}" />
575566
<SolidColorBrush x:Key="SystemFillColorNeutralBackgroundBrush" Color="{ThemeResource SystemColorWindowColor}" />
576567

577-
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{ThemeResource SystemColorWindowColor}" />
578-
579-
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" />
580-
581568
<!-- Elevation border brushes-->
582569

583570
<SolidColorBrush x:Key="ControlElevationBorderBrush" Color="{ThemeResource SystemColorWindowTextColor}" />

0 commit comments

Comments
 (0)