Open Byolock opened 11 months ago
I'm having the same issue when opening a second FluentWindow; it doesn't follow theme changes. Did you find a solution @Byolock, or what are we missing @pomianowski ?
I did not find a solution. I paused my project and hoped it would have been fixed by the time I would continue on my project. Otherwise I planned on going back to the ui framework I used before migrating to this one.
I've seen you posted a workaround. I'll try that one out, should be good enough for my use case.
Let me know if you need help with the implementation
Describe the bug
Creating a new window object in the MainWindow class makes the theme Switcher work incorrectly. The other design is only applied partially. If the starting theme is the Dark Theme this means the background stays dark and some parts of the user controls get brighter but not all. If the starting theme is the Light Theme this means the background stays in white and all user controls get white, essentially rendering them invisible.
To Reproduce
} else if (Wpf.Ui.Appearance.ApplicationThemeManager.GetAppTheme() == Wpf.Ui.Appearance.ApplicationTheme.Light) { Wpf.Ui.Appearance.ApplicationThemeManager.Apply( Wpf.Ui.Appearance.ApplicationTheme.Dark // Theme type );
}
public partial class MainWindow : FluentWindow { private Window1 _window = new();
}