Skip to content

Commit a86c67a

Browse files
authored
Fix dark theme text/richeditbox regressions (#2155)
* Fix dark theme text/richeditbox regressions * Adjust brushes * Switch to correct brush for T.C.ButtonForeground * Update visual tree masters * Revert master files
1 parent 68abde4 commit a86c67a

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

dev/ComboBox/ComboBox_themeresources.xaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@
119119
<Thickness x:Key="ComboBoxDropdownContentMargin">0,4,0,4</Thickness>
120120
<StaticResource x:Key="ComboBoxDropDownBackgroundPointerOver" ResourceKey="SystemControlBackgroundListLowBrush" />
121121
<StaticResource x:Key="ComboBoxDropDownBackgroundPointerPressed" ResourceKey="SystemControlBackgroundListMediumBrush" />
122-
<StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerOver" ResourceKey="SystemControlBackgroundChromeBlackLowBrush" />
123-
<StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerPressed" ResourceKey="SystemControlBackgroundChromeBlackMediumLowBrush" />
124-
<StaticResource x:Key="ComboBoxEditableDropDownGlyphForeground" ResourceKey="SystemControlForegroundAltMediumHighBrush" />
122+
<StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerOver" ResourceKey="SystemControlBackgroundBaseLowBrush" />
123+
<StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerPressed" ResourceKey="SystemControlBackgroundBaseMediumLowBrush" />
124+
<StaticResource x:Key="ComboBoxEditableDropDownGlyphForeground" ResourceKey="SystemControlForegroundBaseMediumHighBrush" />
125125
</ResourceDictionary>
126126
<ResourceDictionary x:Key="HighContrast">
127127
<StaticResource x:Key="ComboBoxItemForeground" ResourceKey="SystemControlForegroundBaseHighBrush" />
@@ -347,8 +347,8 @@
347347
<Thickness x:Key="ComboBoxDropdownContentMargin">0,4,0,4</Thickness>
348348
<StaticResource x:Key="ComboBoxDropDownBackgroundPointerOver" ResourceKey="SystemControlBackgroundListLowBrush" />
349349
<StaticResource x:Key="ComboBoxDropDownBackgroundPointerPressed" ResourceKey="SystemControlBackgroundListMediumBrush" />
350-
<StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerOver" ResourceKey="SystemControlBackgroundChromeBlackLowBrush" />
351-
<StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerPressed" ResourceKey="SystemControlBackgroundChromeBlackMediumLowBrush" />
350+
<StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerOver" ResourceKey="SystemControlBackgroundBaseLowBrush" />
351+
<StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerPressed" ResourceKey="SystemControlBackgroundBaseMediumLowBrush" />
352352
<StaticResource x:Key="ComboBoxEditableDropDownGlyphForeground" ResourceKey="SystemControlForegroundBaseMediumHighBrush" />
353353
</ResourceDictionary>
354354
</ResourceDictionary.ThemeDictionaries>

dev/CommonStyles/TextBox_themeresources.xaml

+12-9
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525
<SolidColorBrush x:Key="TextBoxDisabledBorderThemeBrush" Color="#66FFFFFF" />
2626
<SolidColorBrush x:Key="TextBoxDisabledForegroundThemeBrush" Color="#FF666666" />
2727
<SolidColorBrush x:Key="TextBoxForegroundThemeBrush" Color="#FF000000" />
28-
<StaticResource x:Key="TextControlBackgroundFocused" ResourceKey="SystemAltHighColor" />
28+
<StaticResource x:Key="TextControlBackgroundFocused" ResourceKey="SystemControlBackgroundAltHighBrush" />
2929
<StaticResource x:Key="TextControlBorderBrush" ResourceKey="SystemControlForegroundBaseMediumBrush" />
3030
<StaticResource x:Key="TextControlBorderBrushPointerOver" ResourceKey="SystemControlHighlightBaseMediumHighBrush" />
31-
<StaticResource x:Key="TextControlButtonForeground" ResourceKey="SystemBaseHighColor" />
32-
<StaticResource x:Key="TextControlForegroundFocused" ResourceKey="SystemBaseHighColor" />
31+
<StaticResource x:Key="TextControlButtonForeground" ResourceKey="SystemControlForegroundBaseMediumHighBrush" />
32+
<StaticResource x:Key="TextControlForegroundFocused" ResourceKey="SystemControlForegroundBaseHighBrush" />
33+
<StaticResource x:Key="TextControlPlaceholderForegroundFocused" ResourceKey="SystemControlForegroundBaseMediumLowBrush" />
3334
</ResourceDictionary>
3435
<ResourceDictionary x:Key="HighContrast">
3536
<SolidColorBrush x:Key="TextBoxForegroundHeaderThemeBrush" Color="{ThemeResource SystemColorButtonFaceColor}" />
@@ -49,11 +50,12 @@
4950
<SolidColorBrush x:Key="TextBoxDisabledBorderThemeBrush" Color="{ThemeResource SystemColorGrayTextColor}" />
5051
<SolidColorBrush x:Key="TextBoxDisabledForegroundThemeBrush" Color="{ThemeResource SystemColorButtonTextColor}" />
5152
<SolidColorBrush x:Key="TextBoxForegroundThemeBrush" Color="{ThemeResource SystemColorButtonTextColor}" />
52-
<StaticResource x:Key="TextControlBackgroundFocused" ResourceKey="SystemAltHighColor" />
53+
<StaticResource x:Key="TextControlBackgroundFocused" ResourceKey="SystemControlBackgroundAltHighBrush" />
5354
<StaticResource x:Key="TextControlBorderBrush" ResourceKey="SystemControlForegroundBaseMediumBrush" />
5455
<StaticResource x:Key="TextControlBorderBrushPointerOver" ResourceKey="SystemControlHighlightBaseMediumHighBrush" />
55-
<StaticResource x:Key="TextControlButtonForeground" ResourceKey="SystemBaseHighColor" />
56-
<StaticResource x:Key="TextControlForegroundFocused" ResourceKey="SystemBaseHighColor" />
56+
<StaticResource x:Key="TextControlButtonForeground" ResourceKey="SystemControlForegroundBaseMediumHighBrush" />
57+
<StaticResource x:Key="TextControlForegroundFocused" ResourceKey="SystemControlForegroundBaseHighBrush" />
58+
<StaticResource x:Key="TextControlPlaceholderForegroundFocused" ResourceKey="SystemControlForegroundBaseMediumLowBrush" />
5759
</ResourceDictionary>
5860
<ResourceDictionary x:Key="Light">
5961
<SolidColorBrush x:Key="TextBoxForegroundHeaderThemeBrush" Color="#FF000000" />
@@ -73,11 +75,12 @@
7375
<SolidColorBrush x:Key="TextBoxDisabledBorderThemeBrush" Color="#26000000" />
7476
<SolidColorBrush x:Key="TextBoxDisabledForegroundThemeBrush" Color="#FF666666" />
7577
<SolidColorBrush x:Key="TextBoxForegroundThemeBrush" Color="#FF000000" />
76-
<StaticResource x:Key="TextControlBackgroundFocused" ResourceKey="SystemAltHighColor" />
78+
<StaticResource x:Key="TextControlBackgroundFocused" ResourceKey="SystemControlBackgroundAltHighBrush" />
7779
<StaticResource x:Key="TextControlBorderBrush" ResourceKey="SystemControlForegroundBaseMediumBrush" />
7880
<StaticResource x:Key="TextControlBorderBrushPointerOver" ResourceKey="SystemControlHighlightBaseMediumHighBrush" />
79-
<StaticResource x:Key="TextControlButtonForeground" ResourceKey="SystemBaseHighColor" />
80-
<StaticResource x:Key="TextControlForegroundFocused" ResourceKey="SystemBaseHighColor" />
81+
<StaticResource x:Key="TextControlButtonForeground" ResourceKey="SystemControlForegroundBaseMediumHighBrush" />
82+
<StaticResource x:Key="TextControlForegroundFocused" ResourceKey="SystemControlForegroundBaseHighBrush" />
83+
<StaticResource x:Key="TextControlPlaceholderForegroundFocused" ResourceKey="SystemControlForegroundBaseMediumLowBrush" />
8184
</ResourceDictionary>
8285
</ResourceDictionary.ThemeDictionaries>
8386

0 commit comments

Comments
 (0)