From 9cf27b3906dc8337a6340f12a0498eae2ddc62c7 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Mar 2026 17:20:41 +0800 Subject: [PATCH] Add SplitButtonSpinner theme for ButtonSpinner and NumericUpDown (#776) * Initial plan * Add SplitButtonSpinner theme for ButtonSpinner Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com> Agent-Logs-Url: https://github.com/irihitech/Semi.Avalonia/sessions/7095fb6c-cdd9-48c0-9076-85a35fa93453 * feat: enhance ButtonSpinner and NumericUpDown with new styles and properties. * fix: fix Glyph and enlarge icons. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com> Co-authored-by: Dong Bin Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> --- .../Pages/ButtonSpinnerDemo.axaml | 25 +++++++ .../Pages/NumericUpDownDemo.axaml | 5 ++ .../Controls/ButtonSpinner.axaml | 69 ++++++++++++++++++- .../Controls/NumericUpDown.axaml | 9 +++ .../Themes/Shared/ButtonSpinner.axaml | 6 ++ 5 files changed, 113 insertions(+), 1 deletion(-) diff --git a/demo/Semi.Avalonia.Demo/Pages/ButtonSpinnerDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ButtonSpinnerDemo.axaml index 032b157..8bc27ff 100644 --- a/demo/Semi.Avalonia.Demo/Pages/ButtonSpinnerDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/ButtonSpinnerDemo.axaml @@ -35,5 +35,30 @@ VerticalAlignment="Center" Text="A.S.I.A" /> + + + + + + \ No newline at end of file diff --git a/demo/Semi.Avalonia.Demo/Pages/NumericUpDownDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/NumericUpDownDemo.axaml index 8c4060b..8fdd184 100644 --- a/demo/Semi.Avalonia.Demo/Pages/NumericUpDownDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/NumericUpDownDemo.axaml @@ -51,6 +51,11 @@ + + + + + \ No newline at end of file diff --git a/src/Semi.Avalonia/Controls/ButtonSpinner.axaml b/src/Semi.Avalonia/Controls/ButtonSpinner.axaml index 3aead82..2a0178d 100644 --- a/src/Semi.Avalonia/Controls/ButtonSpinner.axaml +++ b/src/Semi.Avalonia/Controls/ButtonSpinner.axaml @@ -20,6 +20,7 @@ BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Content="{TemplateBinding Content}" + CornerRadius="{TemplateBinding CornerRadius}" ContentTemplate="{TemplateBinding ContentTemplate}" /> @@ -92,7 +93,7 @@ - @@ -100,4 +101,70 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Semi.Avalonia/Controls/NumericUpDown.axaml b/src/Semi.Avalonia/Controls/NumericUpDown.axaml index 1908601..26743bf 100644 --- a/src/Semi.Avalonia/Controls/NumericUpDown.axaml +++ b/src/Semi.Avalonia/Controls/NumericUpDown.axaml @@ -52,6 +52,15 @@ + + + +