Skip to content

Commit 66787d8

Browse files
authored
[Fluent] Fixes mulitple issues is TextBox and TextBoxBase styles (#10756)
* Fixes issues is TextBox and TextBoxBase styles * Minimizing extra non functional changes * Matching parity with Aero2 for TextBox style
1 parent 17ff32d commit 66787d8

File tree

6 files changed

+483
-446
lines changed

6 files changed

+483
-446
lines changed

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HC.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,13 +587,13 @@
587587
<SolidColorBrush x:Key="TextControlForegroundDisabled" Color="{StaticResource SystemColorGrayTextColor}" />
588588
<SolidColorBrush x:Key="TextControlBorderBrush" Color="{StaticResource SystemColorButtonTextColor}" />
589589
<SolidColorBrush x:Key="TextControlBorderBrushPointerOver" Color="{StaticResource SystemColorHighlightColor}" />
590-
<SolidColorBrush x:Key="TextControlFocusedBorderBrush" Color="{StaticResource SystemColorHighlightColor}" />
590+
<SolidColorBrush x:Key="TextControlBorderBrushFocused" Color="{StaticResource SystemColorHighlightColor}" />
591591
<SolidColorBrush x:Key="TextControlBorderBrushDisabled" Color="{StaticResource SystemColorGrayTextColor}" />
592592

593593
<!-- Deprecated TextControl Brushes -->
594-
<SolidColorBrush x:Key="TextControlBorderBrushFocused" Color="{StaticResource SystemColorHighlightColor}" />
594+
<SolidColorBrush x:Key="TextControlFocusedBorderBrush" Color="{StaticResource SystemColorHighlightColor}" />
595595
<SolidColorBrush x:Key="TextControlPlaceholderForeground" Color="{StaticResource SystemColorGrayTextColor}" />
596-
596+
597597
<!-- Thumb -->
598598
<SolidColorBrush x:Key="ThumbBackground" Color="{StaticResource SystemColorButtonTextColor}" />
599599

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Variables.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
-->
2929

3030
<Thickness x:Key="TextControlBorderThemeThickness">1</Thickness>
31+
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness>
32+
3133
<!-- Moved to Light, Dark and HC resource files -->
3234
<!-- <Thickness x:Key="TextControlBorderThemeThicknessFocused">2</Thickness> -->
33-
<Thickness x:Key="TextControlThemePadding">10,5,10,6</Thickness>
3435

3536
<system:Double x:Key="ContentControlFontSize">14</system:Double>
3637
<system:Double x:Key="TextControlThemeMinHeight">24</system:Double>

0 commit comments

Comments
 (0)