From d8e19cfdaccdfa7c9f06d26e371f3d4849bf3ec5 Mon Sep 17 00:00:00 2001 From: robloo Date: Thu, 8 Sep 2022 23:04:34 -0400 Subject: [PATCH 1/6] ColorPicker Fluent control theme updates --- .../Themes/Fluent/ColorSlider.xaml | 6 +- .../Themes/Fluent/ColorSpectrum.xaml | 8 +- .../Themes/Fluent/ColorView.xaml | 285 ++++++++++-------- .../Themes/Fluent/Fluent.xaml | 8 + .../Accents/FluentControlResourcesDark.xaml | 10 +- .../Accents/FluentControlResourcesLight.xaml | 8 +- 6 files changed, 184 insertions(+), 141 deletions(-) diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorSlider.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorSlider.xaml index eb67ada334..db95c6adcc 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorSlider.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorSlider.xaml @@ -5,7 +5,7 @@ - + @@ -179,10 +179,10 @@ diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorSpectrum.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorSpectrum.xaml index f95721c881..05d8eda9f7 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorSpectrum.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorSpectrum.xaml @@ -99,16 +99,16 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -92,14 +240,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + diff --git a/src/Avalonia.Themes.Fluent/Accents/FluentControlResourcesDark.xaml b/src/Avalonia.Themes.Fluent/Accents/FluentControlResourcesDark.xaml index 9d04009aed..88b9f18eee 100644 --- a/src/Avalonia.Themes.Fluent/Accents/FluentControlResourcesDark.xaml +++ b/src/Avalonia.Themes.Fluent/Accents/FluentControlResourcesDark.xaml @@ -87,12 +87,12 @@ 1 1 11,5,11,7 - Normal + Normal - + @@ -100,14 +100,14 @@ - + - + - + diff --git a/src/Avalonia.Themes.Fluent/Accents/FluentControlResourcesLight.xaml b/src/Avalonia.Themes.Fluent/Accents/FluentControlResourcesLight.xaml index 7b673767b8..b51a0bf259 100644 --- a/src/Avalonia.Themes.Fluent/Accents/FluentControlResourcesLight.xaml +++ b/src/Avalonia.Themes.Fluent/Accents/FluentControlResourcesLight.xaml @@ -81,12 +81,12 @@ - + - 64 + 64 1 - 1 - 11,5,11,7 + 1 + 11,5,11,7 Normal From 2b6dad50681af8824447018f28c40f9d79df24e2 Mon Sep 17 00:00:00 2001 From: robloo Date: Sat, 10 Sep 2022 18:19:19 -0400 Subject: [PATCH 2/6] Finish updating Fluent ColorPicker ControlThemes --- samples/ControlCatalog/Pages/ColorPickerPage.xaml | 12 +++++++++--- .../Themes/Fluent/ColorSlider.xaml | 3 ++- .../Themes/Fluent/ColorView.xaml | 5 +++-- .../Themes/Fluent/Fluent.xaml | 8 +++++--- .../Themes/Simple/Simple.xaml | 3 ++- 5 files changed, 21 insertions(+), 10 deletions(-) diff --git a/samples/ControlCatalog/Pages/ColorPickerPage.xaml b/samples/ControlCatalog/Pages/ColorPickerPage.xaml index 1590be25ba..ad54eb95fc 100644 --- a/samples/ControlCatalog/Pages/ColorPickerPage.xaml +++ b/samples/ControlCatalog/Pages/ColorPickerPage.xaml @@ -2,6 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:controls="clr-namespace:Avalonia.Controls;assembly=Avalonia.Controls.ColorPicker" xmlns:primitives="clr-namespace:Avalonia.Controls.Primitives;assembly=Avalonia.Controls" xmlns:pc="clr-namespace:Avalonia.Controls.Primitives.Converters;assembly=Avalonia.Controls.ColorPicker" mc:Ignorable="d" @@ -15,11 +16,16 @@ - + + + + + @@ -47,7 +53,7 @@ ColorModel="Hsva" HsvColor="{Binding HsvColor, ElementName=ColorSpectrum1}" /> - + + diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml index d90c78a2f3..3266c2feeb 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml @@ -240,13 +240,14 @@ + diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/Fluent.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/Fluent.xaml index e1bc0d4c6e..b0f6d89b32 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/Fluent.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/Fluent.xaml @@ -1,6 +1,7 @@ + xmlns:converters="using:Avalonia.Controls.Converters" + x:CompileBindings="True"> @@ -28,12 +29,13 @@ + - + - + diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Simple/Simple.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Simple/Simple.xaml index f21b03cee2..a36692ad81 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Simple/Simple.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Simple/Simple.xaml @@ -1,6 +1,7 @@ + xmlns:converters="using:Avalonia.Controls.Converters" + x:CompileBindings="True"> From fa64fa81123331d8645a18760ee4bfa5953d7d38 Mon Sep 17 00:00:00 2001 From: robloo Date: Sat, 10 Sep 2022 19:52:29 -0400 Subject: [PATCH 3/6] Add initial Simple ControlThemes for ColorView and ColorPicker --- .../Themes/Fluent/ColorView.xaml | 1 - .../Themes/Simple/ColorPicker.xaml | 86 +++ .../Themes/Simple/ColorSlider.xaml | 5 +- .../Themes/Simple/ColorSpectrum.xaml | 11 +- .../Themes/Simple/ColorView.xaml | 663 ++++++++++++++++++ .../Themes/Simple/Simple.xaml | 13 +- 6 files changed, 770 insertions(+), 9 deletions(-) create mode 100644 src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPicker.xaml create mode 100644 src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml index 3266c2feeb..f42aa4e84f 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml @@ -226,7 +226,6 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0,0,0,0 + + + + + + + + + + diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorSlider.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorSlider.xaml index 9aa2dcd9f9..e1142f71df 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorSlider.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorSlider.xaml @@ -6,6 +6,7 @@ TargetType="Thumb"> + @@ -179,10 +180,10 @@ diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorSpectrum.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorSpectrum.xaml index 0e137c89c6..77eff3a69f 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorSpectrum.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorSpectrum.xaml @@ -99,19 +99,22 @@ + diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml new file mode 100644 index 0000000000..9de821367f --- /dev/null +++ b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml @@ -0,0 +1,663 @@ + + + + + + + + + 48 + 30 + 80 + + + M3 2C3.27614 2 3.5 2.22386 3.5 2.5V5.5C3.5 5.77614 3.72386 6 4 6H16C16.2761 6 16.5 5.77614 + 16.5 5.5V2.5C16.5 2.22386 16.7239 2 17 2C17.2761 2 17.5 2.22386 17.5 2.5V5.5C17.5 6.32843 + 16.8284 7 16 7H15.809L12.2236 14.1708C12.0615 14.4951 11.7914 14.7431 11.4695 + 14.8802C11.4905 15.0808 11.5 15.2891 11.5 15.5C11.5 16.0818 11.4278 16.6623 11.2268 + 17.1165C11.019 17.5862 10.6266 18 10 18C9.37343 18 8.98105 17.5862 8.77323 17.1165C8.57222 + 16.6623 8.5 16.0818 8.5 15.5C8.5 15.2891 8.50952 15.0808 8.53051 14.8802C8.20863 14.7431 + 7.93851 14.4951 7.77639 14.1708L4.19098 7H4C3.17157 7 2.5 6.32843 2.5 5.5V2.5C2.5 2.22386 + 2.72386 2 3 2ZM9.11803 14H10.882C11.0714 14 11.2445 13.893 11.3292 13.7236L14.691 + 7H5.30902L8.67082 13.7236C8.75552 13.893 8.92865 14 9.11803 14ZM9.52346 15C9.50787 15.1549 + 9.5 15.3225 9.5 15.5C9.5 16.0228 9.56841 16.4423 9.6877 16.7119C9.8002 16.9661 9.90782 17 + 10 17C10.0922 17 10.1998 16.9661 10.3123 16.7119C10.4316 16.4423 10.5 16.0228 10.5 + 15.5C10.5 15.3225 10.4921 15.1549 10.4765 15H9.52346Z + + + + M9.75003 6.5C10.1642 6.5 10.5 6.16421 10.5 5.75C10.5 5.33579 10.1642 5 9.75003 5C9.33582 + 5 9.00003 5.33579 9.00003 5.75C9.00003 6.16421 9.33582 6.5 9.75003 6.5ZM12.75 7.5C13.1642 + 7.5 13.5 7.16421 13.5 6.75C13.5 6.33579 13.1642 6 12.75 6C12.3358 6 12 6.33579 12 6.75C12 + 7.16421 12.3358 7.5 12.75 7.5ZM15.25 9C15.25 9.41421 14.9142 9.75 14.5 9.75C14.0858 9.75 + 13.75 9.41421 13.75 9C13.75 8.58579 14.0858 8.25 14.5 8.25C14.9142 8.25 15.25 8.58579 + 15.25 9ZM14.5 12.75C14.9142 12.75 15.25 12.4142 15.25 12C15.25 11.5858 14.9142 11.25 14.5 + 11.25C14.0858 11.25 13.75 11.5858 13.75 12C13.75 12.4142 14.0858 12.75 14.5 12.75ZM13.25 + 14C13.25 14.4142 12.9142 14.75 12.5 14.75C12.0858 14.75 11.75 14.4142 11.75 14C11.75 + 13.5858 12.0858 13.25 12.5 13.25C12.9142 13.25 13.25 13.5858 13.25 14ZM13.6972 + 2.99169C10.9426 1.57663 8.1432 1.7124 5.77007 3.16636C4.55909 3.9083 3.25331 5.46925 + 2.51605 7.05899C2.14542 7.85816 1.89915 8.70492 1.90238 9.49318C1.90566 10.2941 2.16983 + 11.0587 2.84039 11.6053C3.45058 12.1026 3.98165 12.353 4.49574 12.3784C5.01375 12.404 + 5.41804 12.1942 5.73429 12.0076C5.80382 11.9666 5.86891 11.927 5.93113 11.8892C6.17332 + 11.7421 6.37205 11.6214 6.62049 11.5426C6.90191 11.4534 7.2582 11.4205 7.77579 + 11.5787C7.96661 11.637 8.08161 11.7235 8.16212 11.8229C8.24792 11.9289 8.31662 12.0774 + 8.36788 12.2886C8.41955 12.5016 8.44767 12.7527 8.46868 13.0491C8.47651 13.1594 8.48379 + 13.2855 8.49142 13.4176C8.50252 13.6098 8.51437 13.8149 8.52974 14.0037C8.58435 14.6744 + 8.69971 15.4401 9.10362 16.1357C9.51764 16.8488 10.2047 17.439 11.307 17.8158C12.9093 + 18.3636 14.3731 17.9191 15.5126 17.0169C16.6391 16.125 17.4691 14.7761 17.8842 + 13.4272C19.1991 9.15377 17.6728 5.03394 13.6972 2.99169ZM6.29249 4.01905C8.35686 2.75426 + 10.7844 2.61959 13.2403 3.88119C16.7473 5.68275 18.1135 9.28161 16.9284 13.1332C16.5624 + 14.3227 15.8338 15.4871 14.8919 16.2329C13.963 16.9684 12.8486 17.286 11.6305 + 16.8696C10.7269 16.5607 10.2467 16.1129 9.96842 15.6336C9.68001 15.1369 9.57799 14.5556 + 9.52644 13.9225C9.51101 13.733 9.50132 13.5621 9.49147 13.3884C9.48399 13.2564 9.47642 + 13.1229 9.46618 12.9783C9.44424 12.669 9.41175 12.3499 9.33968 12.0529C9.26719 11.7541 + 9.14902 11.4527 8.93935 11.1937C8.72439 10.9282 8.43532 10.7346 8.06801 10.6223C7.36648 + 10.408 6.80266 10.4359 6.31839 10.5893C5.94331 10.7082 5.62016 10.9061 5.37179 + 11.0582C5.31992 11.0899 5.2713 11.1197 5.22616 11.1463C4.94094 11.3146 4.75357 11.39 + 4.54514 11.3796C4.33279 11.3691 4.00262 11.2625 3.47218 10.8301C3.0866 10.5158 2.90473 + 10.0668 2.90237 9.48908C2.89995 8.89865 3.08843 8.20165 3.42324 7.47971C4.09686 6.0272 + 5.28471 4.63649 6.29249 4.01905Z + + + + M14.95 5C14.7184 3.85888 13.7095 3 12.5 3C11.2905 3 10.2816 3.85888 10.05 5H2.5C2.22386 + 5 2 5.22386 2 5.5C2 5.77614 2.22386 6 2.5 6H10.05C10.2816 7.14112 11.2905 8 12.5 8C13.7297 + 8 14.752 7.11217 14.961 5.94254C14.9575 5.96177 14.9539 5.98093 14.95 6H17.5C17.7761 6 18 + 5.77614 18 5.5C18 5.22386 17.7761 5 17.5 5H14.95ZM12.5 7C11.6716 7 11 6.32843 11 5.5C11 + 4.67157 11.6716 4 12.5 4C13.3284 4 14 4.67157 14 5.5C14 6.32843 13.3284 7 12.5 7ZM9.94999 + 14C9.71836 12.8589 8.70948 12 7.5 12C6.29052 12 5.28164 12.8589 5.05001 14H2.5C2.22386 + 14 2 14.2239 2 14.5C2 14.7761 2.22386 15 2.5 15H5.05001C5.28164 16.1411 6.29052 17 7.5 + 17C8.70948 17 9.71836 16.1411 9.94999 15H17.5C17.7761 15 18 14.7761 18 14.5C18 14.2239 + 17.7761 14 17.5 14H9.94999ZM7.5 16C6.67157 16 6 15.3284 6 14.5C6 13.6716 6.67157 13 7.5 + 13C8.32843 13 9 13.6716 9 14.5C9 15.3284 8.32843 16 7.5 16Z + + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0,0,0,0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Simple/Simple.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Simple/Simple.xaml index a36692ad81..bb362f4257 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Simple/Simple.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Simple/Simple.xaml @@ -29,6 +29,15 @@ + + + + + + + + + @@ -47,8 +56,8 @@ - - + + From 229756534fcc3d6c02ced9a2a7446d71be2a74a0 Mon Sep 17 00:00:00 2001 From: robloo Date: Tue, 20 Sep 2022 20:14:29 -0400 Subject: [PATCH 4/6] Use XML comments in ColorAnimator --- .../Animation/Animators/ColorAnimator.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Avalonia.Base/Animation/Animators/ColorAnimator.cs b/src/Avalonia.Base/Animation/Animators/ColorAnimator.cs index 1686cafeb9..72add21d69 100644 --- a/src/Avalonia.Base/Animation/Animators/ColorAnimator.cs +++ b/src/Avalonia.Base/Animation/Animators/ColorAnimator.cs @@ -14,16 +14,20 @@ namespace Avalonia.Animation.Animators /// public class ColorAnimator : Animator { - // Opto-electronic conversion function for the sRGB color space - // Takes a gamma-encoded sRGB value and converts it to a linear sRGB value + /// + /// Opto-electronic conversion function for the sRGB color space. + /// Takes a gamma-encoded sRGB value and converts it to a linear sRGB value. + /// private static double OECF_sRGB(double linear) { // IEC 61966-2-1:1999 return linear <= 0.0031308d ? linear * 12.92d : (double)(Math.Pow(linear, 1.0d / 2.4d) * 1.055d - 0.055d); } - // Electro-optical conversion function for the sRGB color space - // Takes a linear sRGB value and converts it to a gamma-encoded sRGB value + /// + /// Electro-optical conversion function for the sRGB color space. + /// Takes a linear sRGB value and converts it to a gamma-encoded sRGB value. + /// private static double EOCF_sRGB(double srgb) { // IEC 61966-2-1:1999 From ff4aa1c42fb9fbd8a2f85672f957f767985e176f Mon Sep 17 00:00:00 2001 From: robloo Date: Sun, 25 Sep 2022 21:08:40 -0400 Subject: [PATCH 5/6] Add ColorViewTabItemTheme --- .../Themes/Fluent/ColorView.xaml | 103 +++++++++++++++--- .../Controls/TabItem.xaml | 2 +- 2 files changed, 86 insertions(+), 19 deletions(-) diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml index f42aa4e84f..8f3c207cbb 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml @@ -228,6 +228,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -264,24 +336,17 @@ Grid.Row="0" Height="338" Width="350" + Padding="0" SelectedIndex="{Binding SelectedIndex, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"> - - 0,0,0,0 - - - - + + + + + - + - + - + Date: Sun, 25 Sep 2022 21:49:56 -0400 Subject: [PATCH 6/6] Complete functional Simple ColorView ControlTheme --- .../Themes/Fluent/ColorView.xaml | 4 +- .../Themes/Simple/ColorView.xaml | 165 ++++++++++++------ 2 files changed, 111 insertions(+), 58 deletions(-) diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml index 8f3c207cbb..16bc2acdd1 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml @@ -164,7 +164,7 @@ - + @@ -228,7 +228,7 @@ - + diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml index 9de821367f..eddcf5e2eb 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml @@ -164,13 +164,14 @@ - + + - + @@ -178,20 +179,20 @@ - + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -240,24 +298,17 @@ Grid.Row="0" Height="338" Width="350" + Padding="0" SelectedIndex="{Binding SelectedIndex, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"> - - 0,0,0,0 - - - - + + + + + - + - + - + @@ -399,11 +452,11 @@ - + + CornerRadius="0,0,0,0" /> @@ -425,19 +478,19 @@ Grid.Row="2" Height="{Binding ElementName=Component1NumericUpDown, Path=Bounds.Height}" Width="{DynamicResource ColorViewComponentLabelWidth}" - Background="{DynamicResource TextControlBackgroundDisabled}" - BorderBrush="{DynamicResource TextControlBorderBrush}" + Background="{DynamicResource ThemeControlMidBrush}" + BorderBrush="{DynamicResource ThemeBorderMidBrush}" BorderThickness="1,1,0,1" - CornerRadius="4,0,0,4" + CornerRadius="0,0,0,0" VerticalAlignment="Center" IsVisible="{TemplateBinding IsComponentTextInputVisible}"> - - @@ -450,7 +503,7 @@ ShowButtonSpinner="False" Height="32" Width="{DynamicResource ColorViewComponentTextInputWidth}" - CornerRadius="0,4,4,0" + CornerRadius="0,0,0,0" Margin="0,0,12,0" VerticalAlignment="Center" NumberFormat="{StaticResource ColorViewComponentNumberFormat}" @@ -476,19 +529,19 @@ Grid.Row="3" Width="{DynamicResource ColorViewComponentLabelWidth}" Height="{Binding ElementName=Component2NumericUpDown, Path=Bounds.Height}" - Background="{DynamicResource TextControlBackgroundDisabled}" - BorderBrush="{DynamicResource TextControlBorderBrush}" + Background="{DynamicResource ThemeControlMidBrush}" + BorderBrush="{DynamicResource ThemeBorderMidBrush}" BorderThickness="1,1,0,1" - CornerRadius="4,0,0,4" + CornerRadius="0,0,0,0" VerticalAlignment="Center" IsVisible="{TemplateBinding IsComponentTextInputVisible}"> - - @@ -501,7 +554,7 @@ ShowButtonSpinner="False" Height="32" Width="{DynamicResource ColorViewComponentTextInputWidth}" - CornerRadius="0,4,4,0" + CornerRadius="0,0,0,0" Margin="0,0,12,0" VerticalAlignment="Center" NumberFormat="{StaticResource ColorViewComponentNumberFormat}" @@ -527,19 +580,19 @@ Grid.Row="4" Width="{DynamicResource ColorViewComponentLabelWidth}" Height="{Binding ElementName=Component3NumericUpDown, Path=Bounds.Height}" - Background="{DynamicResource TextControlBackgroundDisabled}" - BorderBrush="{DynamicResource TextControlBorderBrush}" + Background="{DynamicResource ThemeControlMidBrush}" + BorderBrush="{DynamicResource ThemeBorderMidBrush}" BorderThickness="1,1,0,1" - CornerRadius="4,0,0,4" + CornerRadius="0,0,0,0" VerticalAlignment="Center" IsVisible="{TemplateBinding IsComponentTextInputVisible}"> - - @@ -552,7 +605,7 @@ ShowButtonSpinner="False" Height="32" Width="{DynamicResource ColorViewComponentTextInputWidth}" - CornerRadius="0,4,4,0" + CornerRadius="0,0,0,0" Margin="0,0,12,0" VerticalAlignment="Center" NumberFormat="{StaticResource ColorViewComponentNumberFormat}" @@ -578,14 +631,14 @@ Grid.Row="5" Width="{DynamicResource ColorViewComponentLabelWidth}" Height="{Binding ElementName=AlphaComponentNumericUpDown, Path=Bounds.Height}" - Background="{DynamicResource TextControlBackgroundDisabled}" - BorderBrush="{DynamicResource TextControlBorderBrush}" + Background="{DynamicResource ThemeControlMidBrush}" + BorderBrush="{DynamicResource ThemeBorderMidBrush}" BorderThickness="1,1,0,1" - CornerRadius="4,0,0,4" + CornerRadius="0,0,0,0" VerticalAlignment="Center" IsEnabled="{TemplateBinding IsAlphaEnabled}">