From a61a7f94681b0ba230bac5a030a7d92daf073357 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Fri, 23 Jun 2023 23:51:44 +0800 Subject: [PATCH] feat: add resources. --- demo/Ursa.Demo/Pages/LoadingDemo.axaml | 20 +++---- src/Ursa.Themes.Semi/Controls/Loading.axaml | 54 +++++++++++++++-- .../Converters/BrushToColorConverter.cs | 3 +- .../Themes/Dark/Loading.axaml | 5 ++ src/Ursa.Themes.Semi/Themes/Dark/_index.axaml | 1 + .../Themes/Light/Loading.axaml | 5 ++ .../Themes/Light/_index.axaml | 1 + src/Ursa/Controls/Loading/LoadingContainer.cs | 59 +++++++++++++++++++ 8 files changed, 131 insertions(+), 17 deletions(-) create mode 100644 src/Ursa.Themes.Semi/Themes/Dark/Loading.axaml create mode 100644 src/Ursa.Themes.Semi/Themes/Light/Loading.axaml create mode 100644 src/Ursa/Controls/Loading/LoadingContainer.cs diff --git a/demo/Ursa.Demo/Pages/LoadingDemo.axaml b/demo/Ursa.Demo/Pages/LoadingDemo.axaml index f291038..00c0fb9 100644 --- a/demo/Ursa.Demo/Pages/LoadingDemo.axaml +++ b/demo/Ursa.Demo/Pages/LoadingDemo.axaml @@ -10,16 +10,16 @@ mc:Ignorable="d"> - - + + + + + - - - + IsLoading="{Binding #s.IsChecked}" + LoadingMessage="Loading..."> + + diff --git a/src/Ursa.Themes.Semi/Controls/Loading.axaml b/src/Ursa.Themes.Semi/Controls/Loading.axaml index 442c54b..8cdf7f6 100644 --- a/src/Ursa.Themes.Semi/Controls/Loading.axaml +++ b/src/Ursa.Themes.Semi/Controls/Loading.axaml @@ -6,10 +6,11 @@ - + - + + @@ -42,12 +44,20 @@ + + - - - +