From f55c202b93d60211387bd1c597f7976337fec650 Mon Sep 17 00:00:00 2001 From: Maksym Katsydan Date: Sat, 19 Nov 2022 22:49:03 -0500 Subject: [PATCH] Fix ChangeTheme --- src/Windows/ViewModels/MainViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Windows/ViewModels/MainViewModel.cs b/src/Windows/ViewModels/MainViewModel.cs index 07cf63d..3bd40b8 100644 --- a/src/Windows/ViewModels/MainViewModel.cs +++ b/src/Windows/ViewModels/MainViewModel.cs @@ -29,8 +29,8 @@ namespace AvaloniaCoreRTDemo.Windows.ViewModels private void ChangeTheme(ApplicationTheme theme) { - this.DefaultLightEnabled = theme != ApplicationTheme.SimpleLight && theme != ApplicationTheme.FluentLight; - this.DefaultDarkEnabled = theme != ApplicationTheme.SimpleDark && theme != ApplicationTheme.FluentDark; + this.DefaultLightEnabled = theme != ApplicationTheme.SimpleLight; + this.DefaultDarkEnabled = theme != ApplicationTheme.SimpleDark; this.FluentLightEnabled = theme != ApplicationTheme.FluentLight; this.FluentDarkEnabled = theme != ApplicationTheme.FluentDark; this._window.ThemeSwitch?.ChangeTheme(theme);