diff --git a/demo/Semi.Avalonia.Demo/Pages/ColorPickerDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ColorPickerDemo.axaml index 3eb407d..0dc1a33 100644 --- a/demo/Semi.Avalonia.Demo/Pages/ColorPickerDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/ColorPickerDemo.axaml @@ -2,8 +2,7 @@ x:Class="Semi.Avalonia.Demo.Pages.ColorPickerDemo" xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:colorPicker="clr-namespace:Semi.Avalonia.ColorPicker;assembly=Semi.Avalonia.ColorPicker" - xmlns:controls="using:Avalonia.Controls" + xmlns:semi="https://irihi.tech/semi" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="1450" @@ -11,18 +10,15 @@ mc:Ignorable="d"> - + - + @@ -30,63 +26,55 @@ - - + + - + - + - + - + Theme="{DynamicResource HexColorPicker}" + ColorSpectrumShape="Box"> - + - - + + + MinWidth="32" + HsvColor="hsv(180,80%,70%)"> - - + + + Theme="{StaticResource SimpleColorPicker}" + HsvColor="hsv(180,80%,70%)" /> + Theme="{StaticResource HexSimpleColorPicker}" + HsvColor="hsv(180,80%,70%)" /> diff --git a/src/Semi.Avalonia.ColorPicker/AssemblyInfo.cs b/src/Semi.Avalonia.ColorPicker/AssemblyInfo.cs new file mode 100644 index 0000000..2c1c8f9 --- /dev/null +++ b/src/Semi.Avalonia.ColorPicker/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using Avalonia.Metadata; + +[assembly: XmlnsDefinition("https://irihi.tech/semi", "Semi.Avalonia.ColorPicker")] \ No newline at end of file diff --git a/src/Semi.Avalonia.ColorPicker/Controls/ColorPicker.axaml b/src/Semi.Avalonia.ColorPicker/Controls/ColorPicker.axaml index 27745b7..4da77b9 100644 --- a/src/Semi.Avalonia.ColorPicker/Controls/ColorPicker.axaml +++ b/src/Semi.Avalonia.ColorPicker/Controls/ColorPicker.axaml @@ -1,62 +1,48 @@ - - - - - - - - - - - - + + + - + @@ -481,7 +453,7 @@ x:Key="HexColorPicker" BasedOn="{StaticResource {x:Type ColorPicker}}" TargetType="ColorPicker"> - +