From 2084f148e7248a97d403ec6e1c56a04a76afc6f9 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 13 Jan 2025 23:51:29 +0800
Subject: [PATCH 1/2] feat: ThemeSelector icon.
---
src/Ursa.Themes.Semi/Compatibles/Icon.axaml | 17 +++++++++++++++++
.../Controls/ThemeSelector.axaml | 6 ++----
.../Themes/Shared/ThemeSelector.axaml | 10 ++++------
3 files changed, 23 insertions(+), 10 deletions(-)
diff --git a/src/Ursa.Themes.Semi/Compatibles/Icon.axaml b/src/Ursa.Themes.Semi/Compatibles/Icon.axaml
index 5230ae9..8380cfc 100644
--- a/src/Ursa.Themes.Semi/Compatibles/Icon.axaml
+++ b/src/Ursa.Themes.Semi/Compatibles/Icon.axaml
@@ -50,4 +50,21 @@
M10.75 1.9c.4-1.2 2.1-1.2 2.5 0l1.99 6.12h6.45a1.3 1.3 0 0 1 .77 2.37l-5.22 3.78 2 6.11c.39 1.2-1 2.2-2.02 1.46L12 17.96l-5.22 3.78c-1.02.75-2.4-.25-2.01-1.46l1.99-6.11-5.22-3.78a1.3 1.3 0 0 1 .77-2.37h6.45l2-6.12Z
+
+ M10.5 1.5a1.5 1.5 0 0 1 3 0v1a1.5 1.5 0 0 1-3 0v-1Z,
+ M10.5 21.5a1.5 1.5 0 0 1 3 0v1a1.5 1.5 0 0 1-3 0v-1Z,
+ M24 12c0-.83-.67-1.5-1.5-1.5h-1a1.5 1.5 0 0 0 0 3h1c.83 0 1.5-.67 1.5-1.5Z,
+ M2.5 10.5a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0-3h1Z,
+ M20.49 3.51a1.5 1.5 0 0 0-2.13 0l-.7.71a1.5 1.5 0 1 0 2.12 2.12l.7-.7a1.5 1.5 0 0 0 0-2.13Z,
+ M4.22 17.66a1.5 1.5 0 1 1 2.12 2.12l-.7.7a1.5 1.5 0 1 1-2.13-2.12l.71-.7Z,
+ M3.51 3.51a1.5 1.5 0 0 0 0 2.13l.71.7a1.5 1.5 0 0 0 2.12-2.12l-.7-.7a1.5 1.5 0 0 0-2.13 0Z,
+ M17.66 19.78a1.5 1.5 0 1 1 2.12-2.12l.7.7a1.5 1.5 0 1 1-2.12 2.13l-.7-.71Z,
+ M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z
+
+
+ M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm8-11a8 8 0 0 1-8 8V4a8 8 0 0 1 8 8Z
+
+
+ M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5-8c.48 0 .94-.05 1.39-.14a7 7 0 1 1-7.78-9.72A7 7 0 0 0 17 15Z
+
\ No newline at end of file
diff --git a/src/Ursa.Themes.Semi/Controls/ThemeSelector.axaml b/src/Ursa.Themes.Semi/Controls/ThemeSelector.axaml
index 7968a38..204768a 100644
--- a/src/Ursa.Themes.Semi/Controls/ThemeSelector.axaml
+++ b/src/Ursa.Themes.Semi/Controls/ThemeSelector.axaml
@@ -1,7 +1,6 @@
-
@@ -13,8 +12,7 @@
Theme="{DynamicResource BorderlessButton}">
@@ -32,4 +30,4 @@
-
+
\ No newline at end of file
diff --git a/src/Ursa.Themes.Semi/Themes/Shared/ThemeSelector.axaml b/src/Ursa.Themes.Semi/Themes/Shared/ThemeSelector.axaml
index d40b263..f5d893f 100644
--- a/src/Ursa.Themes.Semi/Themes/Shared/ThemeSelector.axaml
+++ b/src/Ursa.Themes.Semi/Themes/Shared/ThemeSelector.axaml
@@ -1,7 +1,5 @@
-
-
- M9,2C7.95,2 6.95,2.16 6,2.46C10.06,3.73 13,7.5 13,12C13,16.5 10.06,20.27 6,21.54C6.95,21.84 7.95,22 9,22A10,10 0 0,0 19,12A10,10 0 0,0 9,2Z
- M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31L23.31,12L20,8.69Z
- M12,18V6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,15.31L23.31,12L20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31Z
+
+
+
+
From 9b98ad7e6aa47981cb1786c1f05137c62b92656b Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 13 Jan 2025 23:53:39 +0800
Subject: [PATCH 2/2] feat: replace icons in demo.
---
demo/Ursa.Demo/Pages/AvatarDemo.axaml | 9 ++--
demo/Ursa.Demo/Pages/BreadcrumbDemo.axaml | 4 +-
demo/Ursa.Demo/Pages/DialogDemo.axaml | 10 ++---
demo/Ursa.Demo/Pages/DualBadgeDemo.axaml | 44 +++++++------------
demo/Ursa.Demo/Pages/IconButtonDemo.axaml | 28 +++++-------
demo/Ursa.Demo/Pages/IntroductionDemo.axaml | 21 ++++-----
demo/Ursa.Demo/Pages/RatingDemo.axaml | 7 +--
demo/Ursa.Demo/Pages/ToolBarDemo.axaml | 16 ++-----
.../Ursa.Demo/Pages/TwoTonePathIconDemo.axaml | 8 ++--
demo/Ursa.Demo/Views/MainView.axaml | 6 +--
.../Views/TitleBarRightContent.axaml | 12 ++---
11 files changed, 63 insertions(+), 102 deletions(-)
diff --git a/demo/Ursa.Demo/Pages/AvatarDemo.axaml b/demo/Ursa.Demo/Pages/AvatarDemo.axaml
index 861960f..c3046c3 100644
--- a/demo/Ursa.Demo/Pages/AvatarDemo.axaml
+++ b/demo/Ursa.Demo/Pages/AvatarDemo.axaml
@@ -11,9 +11,6 @@
-
- M7.44721 3.10557C7.786 2.428 8.47852 2 9.23607 2H14.7639C15.5215 2 16.214 2.428 16.5528 3.10557L17.5 5H20C21.6569 5 23 6.34315 23 8V18C23 19.6569 21.6569 21 20 21H4C2.34315 21 1 19.6569 1 18V8C1 6.34315 2.34315 5 4 5H6.5L7.44721 3.10557ZM9 13C9 11.3431 10.3431 10 12 10C13.6569 10 15 11.3431 15 13C15 14.6569 13.6569 16 12 16C10.3431 16 9 14.6569 9 13ZM12 8C9.23858 8 7 10.2386 7 13C7 15.7614 9.23858 18 12 18C14.7614 18 17 15.7614 17 13C17 10.2386 14.7614 8 12 8Z
-