From 8aa58355afb28d7d5a0343efcd334cdeb2e243c7 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Thu, 26 Dec 2024 00:48:46 +0800
Subject: [PATCH] fix: fix typo - Dust -> Dusk.
---
demo/Semi.Avalonia.Demo/Pages/ThemeVariantDemo.axaml.cs | 2 +-
.../ViewModels/HighContrastDemoViewModel.cs | 2 +-
demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs | 4 ++--
src/Semi.Avalonia/Themes/SemiTheme.axaml | 4 ++--
src/Semi.Avalonia/Themes/SemiTheme.axaml.cs | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/demo/Semi.Avalonia.Demo/Pages/ThemeVariantDemo.axaml.cs b/demo/Semi.Avalonia.Demo/Pages/ThemeVariantDemo.axaml.cs
index ad7366f..67c4bc8 100644
--- a/demo/Semi.Avalonia.Demo/Pages/ThemeVariantDemo.axaml.cs
+++ b/demo/Semi.Avalonia.Demo/Pages/ThemeVariantDemo.axaml.cs
@@ -25,7 +25,7 @@ public partial class ThemeVariantDemoViewModel : ObservableObject
ThemeVariant.Dark,
SemiTheme.Aquatic,
SemiTheme.Desert,
- SemiTheme.Dust,
+ SemiTheme.Dusk,
SemiTheme.NightSky,
];
}
\ No newline at end of file
diff --git a/demo/Semi.Avalonia.Demo/ViewModels/HighContrastDemoViewModel.cs b/demo/Semi.Avalonia.Demo/ViewModels/HighContrastDemoViewModel.cs
index 968aefa..7e35e7f 100644
--- a/demo/Semi.Avalonia.Demo/ViewModels/HighContrastDemoViewModel.cs
+++ b/demo/Semi.Avalonia.Demo/ViewModels/HighContrastDemoViewModel.cs
@@ -24,7 +24,7 @@ public partial class HighContrastDemoViewModel : ObservableObject
[
SemiTheme.Aquatic,
SemiTheme.Desert,
- SemiTheme.Dust,
+ SemiTheme.Dusk,
SemiTheme.NightSky,
];
ColorResources =
diff --git a/demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs b/demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs
index 3754578..cdd9f74 100644
--- a/demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs
+++ b/demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs
@@ -49,9 +49,9 @@ public partial class MainViewModel : ObservableObject
},
new MenuItemViewModel
{
- Header = "Dust",
+ Header = "Dusk",
Command = SelectThemeCommand,
- CommandParameter = SemiTheme.Dust
+ CommandParameter = SemiTheme.Dusk
},
new MenuItemViewModel
{
diff --git a/src/Semi.Avalonia/Themes/SemiTheme.axaml b/src/Semi.Avalonia/Themes/SemiTheme.axaml
index 5281aa0..9ff7f0e 100644
--- a/src/Semi.Avalonia/Themes/SemiTheme.axaml
+++ b/src/Semi.Avalonia/Themes/SemiTheme.axaml
@@ -7,7 +7,7 @@
-
+
@@ -18,4 +18,4 @@
-
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Themes/SemiTheme.axaml.cs b/src/Semi.Avalonia/Themes/SemiTheme.axaml.cs
index 4f78fc3..d65130c 100644
--- a/src/Semi.Avalonia/Themes/SemiTheme.axaml.cs
+++ b/src/Semi.Avalonia/Themes/SemiTheme.axaml.cs
@@ -12,7 +12,7 @@ public class SemiTheme : Styles
{
public static ThemeVariant Aquatic => new ThemeVariant(nameof(Aquatic), ThemeVariant.Dark);
public static ThemeVariant Desert => new ThemeVariant(nameof(Desert), ThemeVariant.Light);
- public static ThemeVariant Dust => new ThemeVariant(nameof(Dust), ThemeVariant.Dark);
+ public static ThemeVariant Dusk => new ThemeVariant(nameof(Dusk), ThemeVariant.Dark);
public static ThemeVariant NightSky => new ThemeVariant(nameof(NightSky), ThemeVariant.Dark);
private static readonly Dictionary _localeToResource = new()