From 35b122b4e956a2626f2d15a3e5d8aafb72a895af Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Thu, 5 Jun 2025 21:06:51 +0800
Subject: [PATCH] feat: enhance IconButton styles and add new button examples.
---
demo/Ursa.Demo/Pages/IconButtonDemo.axaml | 4 +
.../Controls/IconButton.axaml | 295 +++++++++++-------
2 files changed, 188 insertions(+), 111 deletions(-)
diff --git a/demo/Ursa.Demo/Pages/IconButtonDemo.axaml b/demo/Ursa.Demo/Pages/IconButtonDemo.axaml
index 2162b58..ed40ee5 100644
--- a/demo/Ursa.Demo/Pages/IconButtonDemo.axaml
+++ b/demo/Ursa.Demo/Pages/IconButtonDemo.axaml
@@ -109,16 +109,19 @@
Value="{Binding SelectedPosition}" />
@@ -130,6 +133,7 @@
+ xmlns:u="https://irihi.tech/ursa"
+ xmlns:converters="clr-namespace:Ursa.Themes.Semi.Converters">
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+ CornerRadius="{TemplateBinding CornerRadius}">
+ Data="{Binding}" />
+ Content="{TemplateBinding Content}"
+ ContentTemplate="{TemplateBinding ContentTemplate}"
+ UseLayoutRounding="False" />
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
-
+
+
+
-
+
+
-
+
+
-
+
+
-
+
+
-
-
-
-
-
-
-
-
@@ -276,29 +328,50 @@
x:Key="OutlineIconButton"
BasedOn="{StaticResource {x:Type u:IconButton}}"
TargetType="u:IconButton">
-
-
-
+
-
-
-
-
-
+
-
+
+
+
+
+
+
+
\ No newline at end of file