mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-03 00:00:55 +08:00
fix: fix typo - Dust -> Dusk.
This commit is contained in:
@@ -25,7 +25,7 @@ public partial class ThemeVariantDemoViewModel : ObservableObject
|
||||
ThemeVariant.Dark,
|
||||
SemiTheme.Aquatic,
|
||||
SemiTheme.Desert,
|
||||
SemiTheme.Dust,
|
||||
SemiTheme.Dusk,
|
||||
SemiTheme.NightSky,
|
||||
];
|
||||
}
|
||||
@@ -24,7 +24,7 @@ public partial class HighContrastDemoViewModel : ObservableObject
|
||||
[
|
||||
SemiTheme.Aquatic,
|
||||
SemiTheme.Desert,
|
||||
SemiTheme.Dust,
|
||||
SemiTheme.Dusk,
|
||||
SemiTheme.NightSky,
|
||||
];
|
||||
ColorResources =
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<ResourceInclude x:Key="Dark" Source="avares://Semi.Avalonia/Themes/Dark/_index.axaml" />
|
||||
<ResourceInclude x:Key="{x:Static semi:SemiTheme.Aquatic}" Source="avares://Semi.Avalonia/Themes/HighContrast/Aquatic.axaml" />
|
||||
<ResourceInclude x:Key="{x:Static semi:SemiTheme.Desert}" Source="avares://Semi.Avalonia/Themes/HighContrast/Desert.axaml" />
|
||||
<ResourceInclude x:Key="{x:Static semi:SemiTheme.Dust}" Source="avares://Semi.Avalonia/Themes/HighContrast/Dusk.axaml" />
|
||||
<ResourceInclude x:Key="{x:Static semi:SemiTheme.Dusk}" Source="avares://Semi.Avalonia/Themes/HighContrast/Dusk.axaml" />
|
||||
<ResourceInclude x:Key="{x:Static semi:SemiTheme.NightSky}" Source="avares://Semi.Avalonia/Themes/HighContrast/NightSky.axaml" />
|
||||
</ResourceDictionary.ThemeDictionaries>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
@@ -18,4 +18,4 @@
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Styles.Resources>
|
||||
</Styles>
|
||||
</Styles>
|
||||
@@ -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<CultureInfo, ResourceDictionary> _localeToResource = new()
|
||||
|
||||
Reference in New Issue
Block a user