From 253f88d982efa7e921f3166d7fb349c16d1ae300 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Thu, 27 Jun 2024 18:08:58 +0800
Subject: [PATCH 1/9] feat: add active colors to palette
(cherry picked from commit 694dd863fa66e03cb9f2d8a6fa4f13e036ab0c8f)
---
.../ViewModels/PaletteDemoViewModel.cs | 14 +++++++-------
src/Semi.Avalonia/Themes/Dark/Palette.axaml | 7 +++++++
src/Semi.Avalonia/Themes/Light/Palette.axaml | 7 +++++++
3 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/demo/Semi.Avalonia.Demo/ViewModels/PaletteDemoViewModel.cs b/demo/Semi.Avalonia.Demo/ViewModels/PaletteDemoViewModel.cs
index 3c79a75..f772889 100644
--- a/demo/Semi.Avalonia.Demo/ViewModels/PaletteDemoViewModel.cs
+++ b/demo/Semi.Avalonia.Demo/ViewModels/PaletteDemoViewModel.cs
@@ -251,7 +251,7 @@ public static class ColorTokens
{
new ("SemiColorPrimary", "Primary"),
new ("SemiColorPrimaryPointerover", "Primary Pointerover"),
- new ("SemiColorPrimaryPressed", "Primary Pressed"),
+ new ("SemiColorPrimaryActive", "Primary Active"),
new ("SemiColorPrimaryDisabled", "Primary Disabled"),
new ("SemiColorPrimaryLight", "Primary Light"),
new ("SemiColorPrimaryLightPointerover", "Primary Light Pointerover"),
@@ -262,7 +262,7 @@ public static class ColorTokens
{
new ("SemiColorSecondary", "Secondary"),
new ("SemiColorSecondaryPointerover", "Secondary Pointerover"),
- new ("SemiColorSecondaryPressed", "Secondary Pressed"),
+ new ("SemiColorSecondaryActive", "Secondary Active"),
new ("SemiColorSecondaryDisabled", "Secondary Disabled"),
new ("SemiColorSecondaryLight", "Secondary Light"),
new ("SemiColorSecondaryLightPointerover", "Secondary Light Pointerover"),
@@ -273,7 +273,7 @@ public static class ColorTokens
{
new ("SemiColorTertiary", "Tertiary"),
new ("SemiColorTertiaryPointerover", "Tertiary Pointerover"),
- new ("SemiColorTertiaryPressed", "Tertiary Pressed"),
+ new ("SemiColorTertiaryActive", "Tertiary Active"),
new ("SemiColorTertiaryLight", "Tertiary Light"),
new ("SemiColorTertiaryLightPointerover", "Tertiary Light Pointerover"),
new ("SemiColorTertiaryLightActive", "Tertiary Light Active"),
@@ -283,7 +283,7 @@ public static class ColorTokens
{
new ("SemiColorInformation", "Information"),
new ("SemiColorInformationPointerover", "Information Pointerover"),
- new ("SemiColorInformationPressed", "Information Pressed"),
+ new ("SemiColorInformationActive", "Information Active"),
new ("SemiColorInformationDisabled", "Information Disabled"),
new ("SemiColorInformationLight", "Information Light"),
new ("SemiColorInformationLightPointerover", "Information Light Pointerover"),
@@ -294,7 +294,7 @@ public static class ColorTokens
{
new ("SemiColorSuccess", "Success"),
new ("SemiColorSuccessPointerover", "Success Pointerover"),
- new ("SemiColorSuccessPressed", "Success Pressed"),
+ new ("SemiColorSuccessActive", "Success Active"),
new ("SemiColorSuccessDisabled", "Success Disabled"),
new ("SemiColorSuccessLight", "Success Light"),
new ("SemiColorSuccessLightPointerover", "Success Light Pointerover"),
@@ -305,7 +305,7 @@ public static class ColorTokens
{
new ("SemiColorWarning", "Warning"),
new ("SemiColorWarningPointerover", "Warning Pointerover"),
- new ("SemiColorWarningPressed", "Warning Pressed"),
+ new ("SemiColorWarningActive", "Warning Active"),
new ("SemiColorWarningLight", "Warning Light"),
new ("SemiColorWarningLightPointerover", "Warning Light Pointerover"),
new ("SemiColorWarningLightActive", "Warning Light Active"),
@@ -315,7 +315,7 @@ public static class ColorTokens
{
new ("SemiColorDanger", "Danger"),
new ("SemiColorDangerPointerover", "Danger Pointerover"),
- new ("SemiColorDangerPressed", "Danger Pressed"),
+ new ("SemiColorDangerActive", "Danger Active"),
new ("SemiColorDangerLight", "Danger Light"),
new ("SemiColorDangerLightPointerover", "Danger Light Pointerover"),
new ("SemiColorDangerLightActive", "Danger Light Active"),
diff --git a/src/Semi.Avalonia/Themes/Dark/Palette.axaml b/src/Semi.Avalonia/Themes/Dark/Palette.axaml
index d66c981..7203fa0 100644
--- a/src/Semi.Avalonia/Themes/Dark/Palette.axaml
+++ b/src/Semi.Avalonia/Themes/Dark/Palette.axaml
@@ -326,6 +326,7 @@
+
@@ -334,6 +335,7 @@
+
+
@@ -350,6 +353,7 @@
+
@@ -358,6 +362,7 @@
+
@@ -366,6 +371,7 @@
+
@@ -373,6 +379,7 @@
+
diff --git a/src/Semi.Avalonia/Themes/Light/Palette.axaml b/src/Semi.Avalonia/Themes/Light/Palette.axaml
index a452166..8ca4cf8 100644
--- a/src/Semi.Avalonia/Themes/Light/Palette.axaml
+++ b/src/Semi.Avalonia/Themes/Light/Palette.axaml
@@ -326,6 +326,7 @@
+
@@ -334,6 +335,7 @@
+
@@ -342,6 +344,7 @@
+
@@ -349,6 +352,7 @@
+
@@ -357,6 +361,7 @@
+
@@ -365,6 +370,7 @@
+
@@ -372,6 +378,7 @@
+
From 504d6a1927fd70038718fd51f2da986f16dc115c Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Sat, 13 Jul 2024 15:13:39 +0800
Subject: [PATCH 2/9] feat: add Danger Classes to replace Error Classes in
ProgressBar.
(cherry picked from commit 2da1ecf5a05780d0c6f2c61a9c9d8661e77fcbf6)
---
demo/Semi.Avalonia.Demo/Pages/ProgressBarDemo.axaml | 2 +-
src/Semi.Avalonia/Controls/ProgressBar.axaml | 8 ++++++++
src/Semi.Avalonia/Themes/Dark/ProgressBar.axaml | 2 ++
src/Semi.Avalonia/Themes/Light/ProgressBar.axaml | 2 ++
4 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/demo/Semi.Avalonia.Demo/Pages/ProgressBarDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ProgressBarDemo.axaml
index 77d164b..6585870 100644
--- a/demo/Semi.Avalonia.Demo/Pages/ProgressBarDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/ProgressBarDemo.axaml
@@ -155,7 +155,7 @@
Value="60" />
+
+
@@ -411,6 +415,10 @@
+
+
diff --git a/src/Semi.Avalonia/Themes/Dark/ProgressBar.axaml b/src/Semi.Avalonia/Themes/Dark/ProgressBar.axaml
index 6f40655..7b74afd 100644
--- a/src/Semi.Avalonia/Themes/Dark/ProgressBar.axaml
+++ b/src/Semi.Avalonia/Themes/Dark/ProgressBar.axaml
@@ -9,5 +9,7 @@
+
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Themes/Light/ProgressBar.axaml b/src/Semi.Avalonia/Themes/Light/ProgressBar.axaml
index 2944dbb..ff03bf3 100644
--- a/src/Semi.Avalonia/Themes/Light/ProgressBar.axaml
+++ b/src/Semi.Avalonia/Themes/Light/ProgressBar.axaml
@@ -9,5 +9,7 @@
+
+
\ No newline at end of file
From d318975d73688107e9bb0fdd9e87191786861214 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 15 Jul 2024 22:36:55 +0800
Subject: [PATCH 3/9] feat: extract DataGrid & TreeDataGrid Margin.
(cherry picked from commit b5f4bacececfa763b7f50f5f6d581c7fe4b48510)
---
src/Semi.Avalonia.DataGrid/DataGrid.axaml | 2 +-
src/Semi.Avalonia.DataGrid/Shared.axaml | 1 +
src/Semi.Avalonia.TreeDataGrid/Shared.axaml | 1 +
src/Semi.Avalonia.TreeDataGrid/TreeDataGrid.axaml | 11 ++++-------
4 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/Semi.Avalonia.DataGrid/DataGrid.axaml b/src/Semi.Avalonia.DataGrid/DataGrid.axaml
index 7073ecf..e9a5a88 100644
--- a/src/Semi.Avalonia.DataGrid/DataGrid.axaml
+++ b/src/Semi.Avalonia.DataGrid/DataGrid.axaml
@@ -292,7 +292,7 @@
Name="BackgroundBorder"
Grid.RowSpan="2"
Grid.ColumnSpan="2"
- Margin="2"
+ Margin="{DynamicResource DataGridRowMargin}"
Background="{DynamicResource DataGridRowBackground}"
CornerRadius="3" />
M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z
8 0
+ 2
M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z
diff --git a/src/Semi.Avalonia.TreeDataGrid/Shared.axaml b/src/Semi.Avalonia.TreeDataGrid/Shared.axaml
index 168e7c3..b48fab4 100644
--- a/src/Semi.Avalonia.TreeDataGrid/Shared.axaml
+++ b/src/Semi.Avalonia.TreeDataGrid/Shared.axaml
@@ -5,4 +5,5 @@
M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z
M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z
+ 2
diff --git a/src/Semi.Avalonia.TreeDataGrid/TreeDataGrid.axaml b/src/Semi.Avalonia.TreeDataGrid/TreeDataGrid.axaml
index 3cf32a4..9a83369 100644
--- a/src/Semi.Avalonia.TreeDataGrid/TreeDataGrid.axaml
+++ b/src/Semi.Avalonia.TreeDataGrid/TreeDataGrid.axaml
@@ -149,7 +149,7 @@
@@ -239,8 +238,7 @@
DockPanel.Dock="Left">
@@ -287,8 +285,7 @@
+ Text="{TemplateBinding Value, Mode=TwoWay}" />
From fe5c51599f90b9b08ad1ce83b471a8cbad773308 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 15 Jul 2024 22:43:09 +0800
Subject: [PATCH 4/9] feat: unify Calendar MinHeight/Width in default Theme.
(cherry picked from commit 8afe3a87bd211596c486d01f4fddfa18bc73ad95)
---
src/Semi.Avalonia/Controls/Calendar.axaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Semi.Avalonia/Controls/Calendar.axaml b/src/Semi.Avalonia/Controls/Calendar.axaml
index 3efe8e0..14d3264 100644
--- a/src/Semi.Avalonia/Controls/Calendar.axaml
+++ b/src/Semi.Avalonia/Controls/Calendar.axaml
@@ -31,6 +31,7 @@
+
@@ -53,7 +54,7 @@
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}">
Date: Tue, 16 Jul 2024 22:29:35 +0800
Subject: [PATCH 5/9] feat: add size Classes to ToggleSwitch.
(cherry picked from commit d3c909a83ccb6a0a58c5b61793ca4a8fbd3e765d)
---
.../Pages/ToggleSwitchDemo.axaml | 20 ++-
src/Semi.Avalonia/Controls/ToggleSwitch.axaml | 128 ++++++++++--------
.../Themes/Dark/ToggleSwitch.axaml | 6 +-
.../Themes/Light/ToggleSwitch.axaml | 4 +-
.../Themes/Shared/ToggleSwitch.axaml | 3 +
5 files changed, 92 insertions(+), 69 deletions(-)
diff --git a/demo/Semi.Avalonia.Demo/Pages/ToggleSwitchDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ToggleSwitchDemo.axaml
index d48d7e2..d747949 100644
--- a/demo/Semi.Avalonia.Demo/Pages/ToggleSwitchDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/ToggleSwitchDemo.axaml
@@ -7,7 +7,7 @@
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+ ColumnDefinitions="Auto, *">
-
-
-
-
-
-
-
-
+ Grid.Column="0"
+ Grid.ColumnSpan="2"
+ TemplatedControl.IsTemplateFocusTarget="True" />
+
+
+
+
+
+
-
+
diff --git a/src/Semi.Avalonia/Themes/Dark/ToggleSwitch.axaml b/src/Semi.Avalonia/Themes/Dark/ToggleSwitch.axaml
index 0d3ce91..e087b2f 100644
--- a/src/Semi.Avalonia/Themes/Dark/ToggleSwitch.axaml
+++ b/src/Semi.Avalonia/Themes/Dark/ToggleSwitch.axaml
@@ -4,12 +4,10 @@
-
+
-
+
-
-
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Themes/Light/ToggleSwitch.axaml b/src/Semi.Avalonia/Themes/Light/ToggleSwitch.axaml
index a01024b..f1807ce 100644
--- a/src/Semi.Avalonia/Themes/Light/ToggleSwitch.axaml
+++ b/src/Semi.Avalonia/Themes/Light/ToggleSwitch.axaml
@@ -6,10 +6,8 @@
-
+
-
-
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Themes/Shared/ToggleSwitch.axaml b/src/Semi.Avalonia/Themes/Shared/ToggleSwitch.axaml
index 2212e67..16a1e78 100644
--- a/src/Semi.Avalonia/Themes/Shared/ToggleSwitch.axaml
+++ b/src/Semi.Avalonia/Themes/Shared/ToggleSwitch.axaml
@@ -8,6 +8,9 @@
18
12
24
+ 2 0 0 0
+ 1 0 0 0
+ 3 0 0 0
12
14
From c127544bc782a45c0945cbf6c8bd34abedebeb81 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 15 Jul 2024 02:31:50 +0800
Subject: [PATCH 6/9] feat: Typography.
(cherry picked from commit d7fce5c18041e1a12553a9b4a1cea0213c1c33f1)
---
src/Semi.Avalonia/Themes/Dark/TextBlock.axaml | 8 ++++----
src/Semi.Avalonia/Themes/Light/TextBlock.axaml | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/Semi.Avalonia/Themes/Dark/TextBlock.axaml b/src/Semi.Avalonia/Themes/Dark/TextBlock.axaml
index a51facb..332d0b6 100644
--- a/src/Semi.Avalonia/Themes/Dark/TextBlock.axaml
+++ b/src/Semi.Avalonia/Themes/Dark/TextBlock.axaml
@@ -7,10 +7,10 @@
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Themes/Light/TextBlock.axaml b/src/Semi.Avalonia/Themes/Light/TextBlock.axaml
index c9329eb..4d5d389 100644
--- a/src/Semi.Avalonia/Themes/Light/TextBlock.axaml
+++ b/src/Semi.Avalonia/Themes/Light/TextBlock.axaml
@@ -7,10 +7,10 @@
-
-
-
+
+
+
\ No newline at end of file
From d41d1ff9d4097e44868ed7835f319bf97af2c4d1 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 15 Jul 2024 15:43:18 +0800
Subject: [PATCH 7/9] feat: CheckBox :pressed Background.
(cherry picked from commit ccc25b4801ae59b0a1909ed1e13e7a2d9677fca3)
---
demo/Semi.Avalonia.Demo/Pages/ListBoxDemo.axaml | 8 ++++----
src/Semi.Avalonia/Themes/Dark/CheckBox.axaml | 2 +-
src/Semi.Avalonia/Themes/Light/CheckBox.axaml | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/demo/Semi.Avalonia.Demo/Pages/ListBoxDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ListBoxDemo.axaml
index ef6059e..883338c 100644
--- a/demo/Semi.Avalonia.Demo/Pages/ListBoxDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/ListBoxDemo.axaml
@@ -78,8 +78,8 @@
- Small 1
- Small 2
+ Large 1
+ Large 2
- Small 1
- Small 2
+ Large 1
+ Large 2
diff --git a/src/Semi.Avalonia/Themes/Dark/CheckBox.axaml b/src/Semi.Avalonia/Themes/Dark/CheckBox.axaml
index 4c4bb32..964a754 100644
--- a/src/Semi.Avalonia/Themes/Dark/CheckBox.axaml
+++ b/src/Semi.Avalonia/Themes/Dark/CheckBox.axaml
@@ -9,7 +9,7 @@
-
+
diff --git a/src/Semi.Avalonia/Themes/Light/CheckBox.axaml b/src/Semi.Avalonia/Themes/Light/CheckBox.axaml
index 4218bd6..321e720 100644
--- a/src/Semi.Avalonia/Themes/Light/CheckBox.axaml
+++ b/src/Semi.Avalonia/Themes/Light/CheckBox.axaml
@@ -11,7 +11,7 @@
-
+
From 2b37df580f0b810f69f547ea5d5e2ff060001bcc Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 22 Jul 2024 20:48:04 +0800
Subject: [PATCH 8/9] feat: Button Outline theme & colors.
* add Outline Theme to Button.
* :disabled, Tertiary Classes Button color.
---
.../Semi.Avalonia.Demo/Pages/ButtonDemo.axaml | 280 +++++++++++-------
.../Pages/RepeatButtonDemo.axaml | 40 ++-
.../Pages/ToggleButtonDemo.axaml | 73 ++++-
src/Semi.Avalonia/Controls/Button.axaml | 39 ++-
.../Controls/DropDownButton.axaml | 33 ++-
src/Semi.Avalonia/Controls/RepeatButton.axaml | 33 ++-
src/Semi.Avalonia/Controls/SplitButton.axaml | 37 ++-
src/Semi.Avalonia/Controls/ToggleButton.axaml | 4 +-
src/Semi.Avalonia/Themes/Dark/Button.axaml | 17 +-
.../Themes/Dark/ToggleButton.axaml | 4 +-
src/Semi.Avalonia/Themes/Light/Button.axaml | 17 +-
.../Themes/Light/ToggleButton.axaml | 4 +-
12 files changed, 434 insertions(+), 147 deletions(-)
diff --git a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
index 4f94211..2974962 100644
--- a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
@@ -4,114 +4,176 @@
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"
- d:DesignHeight="450"
- d:DesignWidth="800"
mc:Ignorable="d">
-
- Light (Default)
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ Light (Default)
+
+
+
+
+
+
+
+
+
+ Solid
+
+
+
+
+
+
+
+
+
+ Outline
+
+
+
+
+
+
+
+
+
+ Borderless
+
+
+
+
+
+
+
+
+
+ Disabled
+
+
+
+
+
+
+ Size Classes
+
+
+
+
+
+
+ DropDownButton
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SplitButton
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ToggleSplitButton
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Solid
-
-
-
-
-
-
-
-
-
- Borderless
-
-
-
-
-
-
-
-
-
- DropDownButton
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml
index 5bf1e7f..a9045c9 100644
--- a/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml
@@ -16,7 +16,7 @@
Success
Warning
Danger
- Danger
+ Disabled
Solid
@@ -27,10 +27,25 @@
Warning
Danger
- Danger
+ Disabled
+
+
+ Outline
+
+ Primary
+ Secondary
+ Tertiary
+ Success
+ Warning
+ Danger
+
+ Disabled
Borderless
@@ -42,11 +57,24 @@
Warning
Danger
- Danger
+ Disabled
+ Disabled
+
+
+
+
+
+
+ Size Classes
+
+ Small
+ Default
+ Large
+
-
+
\ No newline at end of file
diff --git a/demo/Semi.Avalonia.Demo/Pages/ToggleButtonDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ToggleButtonDemo.axaml
index 5701f79..a954a7b 100644
--- a/demo/Semi.Avalonia.Demo/Pages/ToggleButtonDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/ToggleButtonDemo.axaml
@@ -17,7 +17,7 @@
Success
Warning
Danger
- Danger
+ Disabled
@@ -28,18 +28,71 @@
Success
Warning
Danger
- Danger
+
+ Disabled
+
- Default
- Primary
- Secondary
- Tertiary
- Success
- Warning
- Danger
- Danger
+ Default
+
+ Primary
+
+
+ Secondary
+
+
+ Tertiary
+
+
+ Success
+
+
+ Warning
+
+
+ Danger
+
+
+ Disabled
+
+
+
+
+ Default
+ Checked
+ Indeterminate
+
+
+
+ Small
+ Default
+ Large
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Controls/Button.axaml b/src/Semi.Avalonia/Controls/Button.axaml
index 594b759..1567ea0 100644
--- a/src/Semi.Avalonia/Controls/Button.axaml
+++ b/src/Semi.Avalonia/Controls/Button.axaml
@@ -2,9 +2,9 @@
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:CompileBindings="True">
-
-
-
+
+
+
@@ -76,7 +76,6 @@
@@ -186,7 +185,37 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Semi.Avalonia/Controls/DropDownButton.axaml b/src/Semi.Avalonia/Controls/DropDownButton.axaml
index c8bc667..65237d4 100644
--- a/src/Semi.Avalonia/Controls/DropDownButton.axaml
+++ b/src/Semi.Avalonia/Controls/DropDownButton.axaml
@@ -88,7 +88,6 @@
@@ -235,7 +234,37 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Semi.Avalonia/Controls/RepeatButton.axaml b/src/Semi.Avalonia/Controls/RepeatButton.axaml
index cad9922..7bb6f40 100644
--- a/src/Semi.Avalonia/Controls/RepeatButton.axaml
+++ b/src/Semi.Avalonia/Controls/RepeatButton.axaml
@@ -71,7 +71,6 @@
@@ -172,7 +171,37 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Semi.Avalonia/Controls/SplitButton.axaml b/src/Semi.Avalonia/Controls/SplitButton.axaml
index 66644d1..e58ebba 100644
--- a/src/Semi.Avalonia/Controls/SplitButton.axaml
+++ b/src/Semi.Avalonia/Controls/SplitButton.axaml
@@ -124,9 +124,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Semi.Avalonia/Controls/ToggleButton.axaml b/src/Semi.Avalonia/Controls/ToggleButton.axaml
index 3393064..fa2519b 100644
--- a/src/Semi.Avalonia/Controls/ToggleButton.axaml
+++ b/src/Semi.Avalonia/Controls/ToggleButton.axaml
@@ -67,6 +67,7 @@
@@ -242,12 +244,12 @@