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] 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 @@
-
+
+
+
+
+
+
+
+
+
+
+