From 37571ebfb39d2d16a8ef8c8513b56874e91be89f Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Thu, 6 Feb 2025 21:04:46 +0800 Subject: [PATCH 1/3] feat: using IconButton in ThemeSelector Template. --- .../Views/TitleBarRightContent.axaml | 16 ++++------ .../Controls/ThemeSelector.axaml | 29 ++++++++----------- 2 files changed, 17 insertions(+), 28 deletions(-) diff --git a/demo/Ursa.Demo/Views/TitleBarRightContent.axaml b/demo/Ursa.Demo/Views/TitleBarRightContent.axaml index 4fa97bf..9ce261b 100644 --- a/demo/Ursa.Demo/Views/TitleBarRightContent.axaml +++ b/demo/Ursa.Demo/Views/TitleBarRightContent.axaml @@ -6,17 +6,11 @@ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="Ursa.Demo.Views.TitleBarRightContent"> - + diff --git a/src/Ursa.Themes.Semi/Controls/ThemeSelector.axaml b/src/Ursa.Themes.Semi/Controls/ThemeSelector.axaml index e012588..5f8a2f7 100644 --- a/src/Ursa.Themes.Semi/Controls/ThemeSelector.axaml +++ b/src/Ursa.Themes.Semi/Controls/ThemeSelector.axaml @@ -2,32 +2,27 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:u="https://irihi.tech/ursa"> - - - - + Theme="{StaticResource BorderlessIconButton}" + Classes="Tertiary" + Padding="{TemplateBinding Padding}" + Width="{TemplateBinding Width}" + Height="{TemplateBinding Height}" /> - - - From 440ab112e912de00df37520192c9a965dbd424d4 Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Thu, 6 Feb 2025 21:06:50 +0800 Subject: [PATCH 2/3] fix: fix Loading rotation direction. --- src/Ursa.Themes.Semi/Controls/Loading.axaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ursa.Themes.Semi/Controls/Loading.axaml b/src/Ursa.Themes.Semi/Controls/Loading.axaml index db54627..8889987 100644 --- a/src/Ursa.Themes.Semi/Controls/Loading.axaml +++ b/src/Ursa.Themes.Semi/Controls/Loading.axaml @@ -45,12 +45,12 @@