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}">