From 6a94e403c970d41be1a86cb78c52a6a72eb9f68d Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Sun, 14 Jul 2024 22:26:59 +0800
Subject: [PATCH 1/7] feat: add Outline Theme to Button.
---
.../Semi.Avalonia.Demo/Pages/ButtonDemo.axaml | 22 ++++++++--
src/Semi.Avalonia/Controls/Button.axaml | 36 +++++++++++++++-
.../Controls/DropDownButton.axaml | 40 ++++++++++++++++--
src/Semi.Avalonia/Controls/SplitButton.axaml | 42 ++++++++++++++++---
src/Semi.Avalonia/Themes/Dark/Button.axaml | 12 +++++-
src/Semi.Avalonia/Themes/Light/Button.axaml | 12 +++++-
6 files changed, 148 insertions(+), 16 deletions(-)
diff --git a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
index 7d96547..09a61d2 100644
--- a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
@@ -64,6 +64,16 @@
Disabled
+ Outline
+
+
+
+
+
+
+
+
+
Borderless
@@ -96,9 +106,11 @@
+
+
@@ -119,11 +131,13 @@
-
-
+
+
+
-
-
+
+
+
diff --git a/src/Semi.Avalonia/Controls/Button.axaml b/src/Semi.Avalonia/Controls/Button.axaml
index 60ee4c4..3cfce82 100644
--- a/src/Semi.Avalonia/Controls/Button.axaml
+++ b/src/Semi.Avalonia/Controls/Button.axaml
@@ -48,7 +48,7 @@
-
+
+
+
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Controls/DropDownButton.axaml b/src/Semi.Avalonia/Controls/DropDownButton.axaml
index b698c9e..73d0d10 100644
--- a/src/Semi.Avalonia/Controls/DropDownButton.axaml
+++ b/src/Semi.Avalonia/Controls/DropDownButton.axaml
@@ -239,17 +239,51 @@
+
+
+
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Controls/SplitButton.axaml b/src/Semi.Avalonia/Controls/SplitButton.axaml
index 4c31daf..b185c5e 100644
--- a/src/Semi.Avalonia/Controls/SplitButton.axaml
+++ b/src/Semi.Avalonia/Controls/SplitButton.axaml
@@ -116,7 +116,7 @@
-
+
-
+
-
+
@@ -306,6 +306,38 @@
+
+
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Themes/Dark/Button.axaml b/src/Semi.Avalonia/Themes/Dark/Button.axaml
index cf4be31..73eada7 100644
--- a/src/Semi.Avalonia/Themes/Dark/Button.axaml
+++ b/src/Semi.Avalonia/Themes/Dark/Button.axaml
@@ -70,7 +70,17 @@
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Semi.Avalonia/Themes/Light/Button.axaml b/src/Semi.Avalonia/Themes/Light/Button.axaml
index 30bd3bc..c674fd7 100644
--- a/src/Semi.Avalonia/Themes/Light/Button.axaml
+++ b/src/Semi.Avalonia/Themes/Light/Button.axaml
@@ -70,7 +70,17 @@
-
+
+
+
+
+
+
+
+
+
+
+
From 0979141f54713f360a5205c22b38dcaaa22e1336 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Sun, 14 Jul 2024 23:49:30 +0800
Subject: [PATCH 2/7] feat: :disabled, Tertiary Classes Button color.
---
demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml | 13 +++++++++++++
src/Semi.Avalonia/Controls/Button.axaml | 15 +++++++--------
src/Semi.Avalonia/Controls/DropDownButton.axaml | 3 +--
src/Semi.Avalonia/Controls/SplitButton.axaml | 4 ++--
src/Semi.Avalonia/Themes/Dark/Button.axaml | 5 +++--
src/Semi.Avalonia/Themes/Light/Button.axaml | 5 +++--
6 files changed, 29 insertions(+), 16 deletions(-)
diff --git a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
index 09a61d2..02b2216 100644
--- a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
@@ -89,6 +89,13 @@
Disabled
+ Disabled
+
+
+
+
+
+
DropDownButton
@@ -155,6 +162,12 @@
+
+
+
+
+
+
diff --git a/src/Semi.Avalonia/Controls/Button.axaml b/src/Semi.Avalonia/Controls/Button.axaml
index 3cfce82..0a46233 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">
-
-
-
+
+
+
@@ -85,7 +85,6 @@
@@ -104,9 +103,9 @@
BasedOn="{StaticResource {x:Type Button}}"
TargetType="Button">
diff --git a/src/Semi.Avalonia/Controls/DropDownButton.axaml b/src/Semi.Avalonia/Controls/DropDownButton.axaml
index 73d0d10..1528e70 100644
--- a/src/Semi.Avalonia/Controls/DropDownButton.axaml
+++ b/src/Semi.Avalonia/Controls/DropDownButton.axaml
@@ -110,7 +110,6 @@
@@ -301,7 +301,7 @@
diff --git a/src/Semi.Avalonia/Themes/Dark/Button.axaml b/src/Semi.Avalonia/Themes/Dark/Button.axaml
index 73eada7..2f9ff5a 100644
--- a/src/Semi.Avalonia/Themes/Dark/Button.axaml
+++ b/src/Semi.Avalonia/Themes/Dark/Button.axaml
@@ -2,7 +2,7 @@
-
+
@@ -11,7 +11,6 @@
-
@@ -69,6 +68,8 @@
+
+
diff --git a/src/Semi.Avalonia/Themes/Light/Button.axaml b/src/Semi.Avalonia/Themes/Light/Button.axaml
index c674fd7..ba9513c 100644
--- a/src/Semi.Avalonia/Themes/Light/Button.axaml
+++ b/src/Semi.Avalonia/Themes/Light/Button.axaml
@@ -2,7 +2,7 @@
-
+
@@ -11,7 +11,6 @@
-
@@ -69,6 +68,8 @@
+
+
From 1378219b7aa48dd7ae938b920f23267c09b13231 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 15 Jul 2024 00:33:28 +0800
Subject: [PATCH 3/7] feat: RepeatButton.
---
.../Semi.Avalonia.Demo/Pages/ButtonDemo.axaml | 11 ++--
.../Pages/RepeatButtonDemo.axaml | 27 +++++++-
src/Semi.Avalonia/Controls/RepeatButton.axaml | 61 ++++++++++++++++---
3 files changed, 82 insertions(+), 17 deletions(-)
diff --git a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
index 02b2216..2974962 100644
--- a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml
@@ -44,11 +44,6 @@
-
-
-
-
-
Solid
@@ -96,6 +91,12 @@
+ Size Classes
+
+
+
+
+
DropDownButton
diff --git a/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml
index 0f417ef..a9045c9 100644
--- a/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml
@@ -33,6 +33,21 @@
Disabled
+ Outline
+
+ Primary
+ Secondary
+ Tertiary
+ Success
+ Warning
+ Danger
+
+ Disabled
+
+
Borderless
Primary
@@ -48,10 +63,18 @@
Disabled
-
+ Disabled
+
+
+
+
+
+
+ Size Classes
+
Small
Default
Large
-
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Controls/RepeatButton.axaml b/src/Semi.Avalonia/Controls/RepeatButton.axaml
index 88e17d2..357c94f 100644
--- a/src/Semi.Avalonia/Controls/RepeatButton.axaml
+++ b/src/Semi.Avalonia/Controls/RepeatButton.axaml
@@ -4,17 +4,17 @@
x:CompileBindings="True">
-
-
+
+
@@ -22,7 +22,7 @@
-
+
@@ -103,6 +102,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -206,8 +247,8 @@
BasedOn="{StaticResource {x:Type RepeatButton}}"
TargetType="RepeatButton">
+
+
+
@@ -248,12 +250,12 @@
diff --git a/src/Semi.Avalonia/Themes/Dark/TextBlock.axaml b/src/Semi.Avalonia/Themes/Dark/TextBlock.axaml
index a51facb..ca0e53a 100644
--- a/src/Semi.Avalonia/Themes/Dark/TextBlock.axaml
+++ b/src/Semi.Avalonia/Themes/Dark/TextBlock.axaml
@@ -7,10 +7,11 @@
-
-
-
-
+
+
+
+
-
+
+
\ 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..0cda42b 100644
--- a/src/Semi.Avalonia/Themes/Light/TextBlock.axaml
+++ b/src/Semi.Avalonia/Themes/Light/TextBlock.axaml
@@ -7,10 +7,11 @@
-
-
-
+
+
+
-
+
+
\ No newline at end of file
From c4f575412970fdbec48cfffd4938e3c4ff289ae0 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 15 Jul 2024 03:06:46 +0800
Subject: [PATCH 6/7] fix: fix SplitButton :pressed Background.
---
src/Semi.Avalonia/Controls/SplitButton.axaml | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/src/Semi.Avalonia/Controls/SplitButton.axaml b/src/Semi.Avalonia/Controls/SplitButton.axaml
index 01148b1..027b580 100644
--- a/src/Semi.Avalonia/Controls/SplitButton.axaml
+++ b/src/Semi.Avalonia/Controls/SplitButton.axaml
@@ -317,14 +317,12 @@
-
-
+