Skip to content

Commit 117eb9b

Browse files
carlos-zamoraDHowett
authored andcommitted
Improve color contrast of reset button in SUI (#17912)
Adds a theme resource for the color of the reset button in the settings UI. Closes #17902 (cherry picked from commit 0bd19e9) Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgTTb0s Service-Version: 1.21
1 parent 0982abe commit 117eb9b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/cascadia/TerminalSettingsEditor/SettingContainerStyle.xaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
<StaticResource x:Key="SettingContainerMessageForeground"
4545
ResourceKey="TextFillColorPrimaryBrush" />
4646

47+
<StaticResource x:Key="SettingContainerResetButtonIconForeground"
48+
ResourceKey="SystemAccentColorDark2" />
49+
4750
</ResourceDictionary>
4851
<ResourceDictionary x:Key="HighContrast">
4952
<Style x:Key="SecondaryTextBlockStyle"
@@ -73,6 +76,9 @@
7376
ResourceKey="SystemColorWindowTextColorBrush" />
7477
<StaticResource x:Key="SettingContainerMessageForeground"
7578
ResourceKey="SystemColorWindowTextColorBrush" />
79+
80+
<StaticResource x:Key="SettingContainerResetButtonIconForeground"
81+
ResourceKey="SystemAccentColorLight1" />
7682
</ResourceDictionary>
7783
<ResourceDictionary x:Key="Dark">
7884
<Style x:Key="SecondaryTextBlockStyle"
@@ -106,6 +112,9 @@
106112
ResourceKey="TextFillColorPrimaryBrush" />
107113
<StaticResource x:Key="SettingContainerMessageForeground"
108114
ResourceKey="TextFillColorPrimaryBrush" />
115+
116+
<StaticResource x:Key="SettingContainerResetButtonIconForeground"
117+
ResourceKey="SystemAccentColorLight2" />
109118
</ResourceDictionary>
110119
</ResourceDictionary.ThemeDictionaries>
111120

@@ -136,7 +145,7 @@
136145

137146
<Style x:Key="SettingContainerFontIconStyle"
138147
TargetType="FontIcon">
139-
<Setter Property="Foreground" Value="{StaticResource SystemAccentColor}" />
148+
<Setter Property="Foreground" Value="{ThemeResource SettingContainerResetButtonIconForeground}" />
140149
<Setter Property="FontSize" Value="11" />
141150
<Setter Property="FontFamily" Value="{ThemeResource SymbolThemeFontFamily}" />
142151
</Style>

0 commit comments

Comments
 (0)