Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
0 deletions
-
src/Avalonia.Themes.Fluent/FluentTheme.cs
|
|
|
@ -83,6 +83,14 @@ namespace Avalonia.Themes.Fluent |
|
|
|
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change) |
|
|
|
{ |
|
|
|
base.OnPropertyChanged(change); |
|
|
|
|
|
|
|
if (_loaded is null) |
|
|
|
{ |
|
|
|
// If style wasn't yet loaded, no need to change children styles,
|
|
|
|
// it will be applied later in Loaded getter.
|
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (change.Property == ModeProperty) |
|
|
|
{ |
|
|
|
if (Mode == FluentThemeMode.Dark) |
|
|
|
|