@@ -4,7 +4,7 @@ using Avalonia;
|
|||||||
using Avalonia.Styling;
|
using Avalonia.Styling;
|
||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
using CommunityToolkit.Mvvm.Messaging;
|
using CommunityToolkit.Mvvm.Messaging;
|
||||||
using Semi.Avalonia;
|
using Ursa.Themes.Semi;
|
||||||
|
|
||||||
namespace Ursa.Demo.ViewModels;
|
namespace Ursa.Demo.ViewModels;
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ public partial class MainViewViewModel : ViewModelBase
|
|||||||
new("Dark", ThemeVariant.Dark),
|
new("Dark", ThemeVariant.Dark),
|
||||||
new("Aquatic", SemiTheme.Aquatic),
|
new("Aquatic", SemiTheme.Aquatic),
|
||||||
new("Desert", SemiTheme.Desert),
|
new("Desert", SemiTheme.Desert),
|
||||||
new("Dust", SemiTheme.Dust),
|
new("Dusk", SemiTheme.Dusk),
|
||||||
new("NightSky", SemiTheme.NightSky)
|
new("NightSky", SemiTheme.NightSky)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<ResourceInclude x:Key="Light" Source="./Themes/Light/_index.axaml" />
|
<ResourceInclude x:Key="Light" Source="./Themes/Light/_index.axaml" />
|
||||||
<ResourceInclude x:Key="{x:Static semi:SemiTheme.Aquatic}" Source="./Themes/HighContrast/Aquatic.axaml" />
|
<ResourceInclude x:Key="{x:Static semi:SemiTheme.Aquatic}" Source="./Themes/HighContrast/Aquatic.axaml" />
|
||||||
<ResourceInclude x:Key="{x:Static semi:SemiTheme.Desert}" Source="./Themes/HighContrast/Desert.axaml" />
|
<ResourceInclude x:Key="{x:Static semi:SemiTheme.Desert}" Source="./Themes/HighContrast/Desert.axaml" />
|
||||||
<ResourceInclude x:Key="{x:Static semi:SemiTheme.Dust}" Source="./Themes/HighContrast/Dusk.axaml" />
|
<ResourceInclude x:Key="{x:Static semi:SemiTheme.Dusk}" Source="./Themes/HighContrast/Dusk.axaml" />
|
||||||
<ResourceInclude x:Key="{x:Static semi:SemiTheme.NightSky}" Source="./Themes/HighContrast/NightSky.axaml" />
|
<ResourceInclude x:Key="{x:Static semi:SemiTheme.NightSky}" Source="./Themes/HighContrast/NightSky.axaml" />
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ public class SemiTheme: Styles
|
|||||||
{
|
{
|
||||||
public static ThemeVariant Aquatic => new ThemeVariant(nameof(Aquatic), ThemeVariant.Dark);
|
public static ThemeVariant Aquatic => new ThemeVariant(nameof(Aquatic), ThemeVariant.Dark);
|
||||||
public static ThemeVariant Desert => new ThemeVariant(nameof(Desert), ThemeVariant.Light);
|
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);
|
public static ThemeVariant NightSky => new ThemeVariant(nameof(NightSky), ThemeVariant.Dark);
|
||||||
|
|
||||||
private static readonly Lazy<Dictionary<CultureInfo, ResourceDictionary>> _localeToResource = new Lazy<Dictionary<CultureInfo, ResourceDictionary>>(
|
private static readonly Lazy<Dictionary<CultureInfo, ResourceDictionary>> _localeToResource = new Lazy<Dictionary<CultureInfo, ResourceDictionary>>(
|
||||||
|
|||||||
Reference in New Issue
Block a user