Skip to content

Commit

Permalink
Theming fixes (#1236)
Browse files Browse the repository at this point in the history
* Fix TextControl placeholders not using the proper color

* Fix InfoBar padding so it's centered for single-line messages
  • Loading branch information
Difegue authored Feb 1, 2025
1 parent 1ef6c6f commit 2afbe94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Controls/InfoBar/InfoBar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<Grid x:Name="InfoBarRoot">
<Border
x:Name="ContentBorder"
Padding="16,14,16,10"
Padding="16,12"
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
VerticalAlignment="{TemplateBinding VerticalAlignment}"
Background="{TemplateBinding Background}"
Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Resources/Theme/Dark.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@
<SolidColorBrush x:Key="TextControlForegroundDisabled" Color="{StaticResource TextFillColorDisabled}" />
<SolidColorBrush x:Key="TextControlFocusedBorderBrush" Color="{DynamicResource SystemAccentColorPrimary}" />
<SolidColorBrush x:Key="TextControlBorderBrushDisabled" Color="{StaticResource ControlStrokeColorDefault}" />
<SolidColorBrush x:Key="TextControlPlaceholderForeground" Color="{StaticResource TextFillColorSecondary}" />
<SolidColorBrush x:Key="TextControlPlaceholderForeground" Color="{StaticResource TextPlaceholderColor}" />
<SolidColorBrush x:Key="TextControlButtonForeground" Color="{StaticResource TextFillColorSecondary}" />

<!-- ThumbRate -->
Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Resources/Theme/Light.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@
<SolidColorBrush x:Key="TextControlForegroundDisabled" Color="{StaticResource TextFillColorDisabled}" />
<SolidColorBrush x:Key="TextControlFocusedBorderBrush" Color="{DynamicResource SystemAccentColorPrimary}" />
<SolidColorBrush x:Key="TextControlBorderBrushDisabled" Color="{StaticResource ControlStrokeColorDefault}" />
<SolidColorBrush x:Key="TextControlPlaceholderForeground" Color="{StaticResource TextFillColorSecondary}" />
<SolidColorBrush x:Key="TextControlPlaceholderForeground" Color="{StaticResource TextPlaceholderColor}" />
<SolidColorBrush x:Key="TextControlButtonForeground" Color="{StaticResource TextFillColorSecondary}" />

<!-- ThumbRate -->
Expand Down

0 comments on commit 2afbe94

Please sign in to comment.