From a521efd39a0252a908a212d31df1f6a4a39f35da Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Fri, 26 Jan 2024 19:52:45 +0800 Subject: [PATCH] Revert "ColorPicker new theme." --- .../Pages/ColorPickerDemo.axaml | 6 -- .../Controls/ColorPicker.axaml | 83 +++++-------------- 2 files changed, 21 insertions(+), 68 deletions(-) diff --git a/demo/Semi.Avalonia.Demo/Pages/ColorPickerDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ColorPickerDemo.axaml index 1172cd4..f04f907 100644 --- a/demo/Semi.Avalonia.Demo/Pages/ColorPickerDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/ColorPickerDemo.axaml @@ -29,12 +29,6 @@ - - - - - - diff --git a/src/Semi.Avalonia.ColorPicker/Controls/ColorPicker.axaml b/src/Semi.Avalonia.ColorPicker/Controls/ColorPicker.axaml index 3e4ef89..8e67c52 100644 --- a/src/Semi.Avalonia.ColorPicker/Controls/ColorPicker.axaml +++ b/src/Semi.Avalonia.ColorPicker/Controls/ColorPicker.axaml @@ -17,33 +17,10 @@ - + - - - - - @@ -56,8 +33,6 @@ HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" ClipToBounds="True" - Content="{TemplateBinding Content}" - ContentTemplate="{TemplateBinding ContentTemplate}" CornerRadius="{TemplateBinding CornerRadius}" UseLayoutRounding="False"> @@ -65,6 +40,26 @@ + + + + + + + @@ -476,40 +471,4 @@ - - - - - - -