From 2b6dad50681af8824447018f28c40f9d79df24e2 Mon Sep 17 00:00:00 2001 From: robloo Date: Sat, 10 Sep 2022 18:19:19 -0400 Subject: [PATCH] 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">