From 59872720add1fc858e68a4e3cd120d1e6f18a036 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Wed, 7 Feb 2024 00:03:36 +0800 Subject: [PATCH] feat: make loading icon only animate when visible, to reduce GPU usage when it's not in the UI. --- src/Ursa.Themes.Semi/Controls/Loading.axaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Ursa.Themes.Semi/Controls/Loading.axaml b/src/Ursa.Themes.Semi/Controls/Loading.axaml index 8cdf7f6..f8e811a 100644 --- a/src/Ursa.Themes.Semi/Controls/Loading.axaml +++ b/src/Ursa.Themes.Semi/Controls/Loading.axaml @@ -2,7 +2,8 @@ xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:converters="clr-namespace:Ursa.Themes.Semi.Converters" - xmlns:u="clr-namespace:Ursa.Controls;assembly=Ursa"> + xmlns:u="clr-namespace:Ursa.Controls;assembly=Ursa" + xmlns:shapes="clr-namespace:Ursa.Controls.Shapes;assembly=Ursa"> @@ -12,6 +13,7 @@ -