From 130359f86f6f5ee726b4bc4a49c15c0c29d00ebf Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Fri, 20 Oct 2023 16:40:56 +0200 Subject: [PATCH] TextBox --- src/Wpf.Ui/Controls/TextBox/TextBox.xaml | 111 ++++++----------------- src/Wpf.Ui/Resources/Theme/Dark.xaml | 28 ++++++ src/Wpf.Ui/Resources/Theme/Light.xaml | 26 +++++- 3 files changed, 81 insertions(+), 84 deletions(-) diff --git a/src/Wpf.Ui/Controls/TextBox/TextBox.xaml b/src/Wpf.Ui/Controls/TextBox/TextBox.xaml index 6102d3a46..2da97a7c8 100644 --- a/src/Wpf.Ui/Controls/TextBox/TextBox.xaml +++ b/src/Wpf.Ui/Controls/TextBox/TextBox.xaml @@ -46,22 +46,10 @@ - - - - - - - - - - - - - - - - + + + + @@ -124,16 +112,8 @@ - - - - - - - - - - + + @@ -141,20 +121,16 @@ - - - - - + - - - - + + + + @@ -211,11 +187,8 @@ Margin="0" Padding="1,0" VerticalAlignment="Center" - Text="{TemplateBinding PlaceholderText}"> - - - - + Foreground="{DynamicResource TextControlPlaceholderForeground}" + Text="{TemplateBinding PlaceholderText}" /> @@ -234,10 +207,8 @@ Background="Transparent" BorderBrush="Transparent" Command="{Binding Path=TemplateButtonCommand, RelativeSource={RelativeSource TemplatedParent}}" - Cursor="Arrow"> - - - + Cursor="Arrow" + Foreground="{DynamicResource TextControlButtonForeground}"> @@ -293,16 +264,8 @@ - - - - - - - - - - + + @@ -310,11 +273,7 @@ - - - - - + @@ -324,13 +283,13 @@ - - - - - - - + + + + + + + @@ -375,22 +334,10 @@ - - - - - - - - - - - - - - - - + + + + diff --git a/src/Wpf.Ui/Resources/Theme/Dark.xaml b/src/Wpf.Ui/Resources/Theme/Dark.xaml index 0fe7e7d26..5fb3dab63 100644 --- a/src/Wpf.Ui/Resources/Theme/Dark.xaml +++ b/src/Wpf.Ui/Resources/Theme/Dark.xaml @@ -245,6 +245,16 @@ + + + + + + + + + + @@ -495,4 +505,22 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/Wpf.Ui/Resources/Theme/Light.xaml b/src/Wpf.Ui/Resources/Theme/Light.xaml index 7bd923834..c292ed024 100644 --- a/src/Wpf.Ui/Resources/Theme/Light.xaml +++ b/src/Wpf.Ui/Resources/Theme/Light.xaml @@ -240,19 +240,26 @@ + + + + + + + - + - + @@ -502,4 +509,19 @@ + + + + + + + + + + + + + + +