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