From fa94841ab9de6450cccdfaf27da814b18e292f10 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Sat, 15 Nov 2025 15:37:25 +0800
Subject: [PATCH] feat: add AI style for IconButton. (#823)
* feat: add AI style for IconButton.
* feat: update package references for CommunityToolkit.Mvvm, Semi.Avalonia, and add SkiaSharp.
---
demo/Ursa.Demo/Pages/IconButtonDemo.axaml | 46 ++++++
demo/Ursa.Demo/Ursa.Demo.csproj | 5 +-
.../Controls/IconButton.axaml | 156 +++++++++++++++---
3 files changed, 182 insertions(+), 25 deletions(-)
diff --git a/demo/Ursa.Demo/Pages/IconButtonDemo.axaml b/demo/Ursa.Demo/Pages/IconButtonDemo.axaml
index ed40ee5..f44c417 100644
--- a/demo/Ursa.Demo/Pages/IconButtonDemo.axaml
+++ b/demo/Ursa.Demo/Pages/IconButtonDemo.axaml
@@ -158,6 +158,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/demo/Ursa.Demo/Ursa.Demo.csproj b/demo/Ursa.Demo/Ursa.Demo.csproj
index 8f63ed1..4bcbf36 100644
--- a/demo/Ursa.Demo/Ursa.Demo.csproj
+++ b/demo/Ursa.Demo/Ursa.Demo.csproj
@@ -18,8 +18,9 @@
-
-
+
+
+
diff --git a/src/Ursa.Themes.Semi/Controls/IconButton.axaml b/src/Ursa.Themes.Semi/Controls/IconButton.axaml
index 41c690d..b1c6287 100644
--- a/src/Ursa.Themes.Semi/Controls/IconButton.axaml
+++ b/src/Ursa.Themes.Semi/Controls/IconButton.axaml
@@ -4,31 +4,90 @@
xmlns:u="https://irihi.tech/ursa"
xmlns:converters="using:Ursa.Themes.Semi.Converters">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -130,6 +189,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -348,6 +448,16 @@
+
+
+
+