Browse Source

Fix light theme in first time setup

pull/165/head
Ionite 1 year ago
parent
commit
d568c837b2
No known key found for this signature in database
  1. 1
      CHANGELOG.md
  2. 2
      StabilityMatrix.Avalonia/App.axaml
  3. 10
      StabilityMatrix.Avalonia/Views/FirstLaunchSetupWindow.axaml.cs

1
CHANGELOG.md

@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
- Fixed model index startup errors when `./Models` contains unknown custom folder names - Fixed model index startup errors when `./Models` contains unknown custom folder names
- Fixed ストップ button being cut off in Japanese translation - Fixed ストップ button being cut off in Japanese translation
- Fixed update progress freezing in some cases - Fixed update progress freezing in some cases
- Fixed light theme being default in first time setup window
## v2.4.6 ## v2.4.6
### Added ### Added

2
StabilityMatrix.Avalonia/App.axaml

@ -4,7 +4,7 @@
xmlns:local="using:StabilityMatrix.Avalonia" xmlns:local="using:StabilityMatrix.Avalonia"
xmlns:idcr="using:Dock.Avalonia.Controls.Recycling" xmlns:idcr="using:Dock.Avalonia.Controls.Recycling"
xmlns:styling="clr-namespace:FluentAvalonia.Styling;assembly=FluentAvalonia" xmlns:styling="clr-namespace:FluentAvalonia.Styling;assembly=FluentAvalonia"
RequestedThemeVariant="Default"> RequestedThemeVariant="Dark">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. --> <!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.DataTemplates> <Application.DataTemplates>

10
StabilityMatrix.Avalonia/Views/FirstLaunchSetupWindow.axaml.cs

@ -1,4 +1,6 @@
using System.Diagnostics.CodeAnalysis; using System;
using System.Diagnostics.CodeAnalysis;
using Avalonia;
using Avalonia.Interactivity; using Avalonia.Interactivity;
using Avalonia.Markup.Xaml; using Avalonia.Markup.Xaml;
using FluentAvalonia.UI.Controls; using FluentAvalonia.UI.Controls;
@ -9,7 +11,7 @@ namespace StabilityMatrix.Avalonia.Views;
public partial class FirstLaunchSetupWindow : AppWindowBase public partial class FirstLaunchSetupWindow : AppWindowBase
{ {
public ContentDialogResult Result { get; private set; } public ContentDialogResult Result { get; private set; }
public FirstLaunchSetupWindow() public FirstLaunchSetupWindow()
{ {
InitializeComponent(); InitializeComponent();
@ -19,14 +21,14 @@ public partial class FirstLaunchSetupWindow : AppWindowBase
{ {
AvaloniaXamlLoader.Load(this); AvaloniaXamlLoader.Load(this);
} }
[SuppressMessage("ReSharper", "UnusedParameter.Local")] [SuppressMessage("ReSharper", "UnusedParameter.Local")]
private void ContinueButton_OnClick(object? sender, RoutedEventArgs e) private void ContinueButton_OnClick(object? sender, RoutedEventArgs e)
{ {
Result = ContentDialogResult.Primary; Result = ContentDialogResult.Primary;
Close(); Close();
} }
[SuppressMessage("ReSharper", "UnusedParameter.Local")] [SuppressMessage("ReSharper", "UnusedParameter.Local")]
private void QuitButton_OnClick(object? sender, RoutedEventArgs e) private void QuitButton_OnClick(object? sender, RoutedEventArgs e)
{ {

Loading…
Cancel
Save