Win11 specific: Added workaround for implicit set of the dark mode
This commit is contained in:
parent
c921d6f936
commit
e1104d5f7d
1 changed files with 4 additions and 1 deletions
|
@ -865,8 +865,11 @@ bool GUI_App::on_init_inner()
|
||||||
wxInitAllImageHandlers();
|
wxInitAllImageHandlers();
|
||||||
|
|
||||||
#ifdef _MSW_DARK_MODE
|
#ifdef _MSW_DARK_MODE
|
||||||
if (app_config->get("dark_color_mode") == "1")
|
if (bool dark_mode = app_config->get("dark_color_mode") == "1") {
|
||||||
NppDarkMode::InitDarkMode();
|
NppDarkMode::InitDarkMode();
|
||||||
|
if (dark_mode != NppDarkMode::IsDarkMode())
|
||||||
|
NppDarkMode::SetDarkMode(dark_mode);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
SplashScreen* scrn = nullptr;
|
SplashScreen* scrn = nullptr;
|
||||||
if (app_config->get("show_splash_screen") == "1") {
|
if (app_config->get("show_splash_screen") == "1") {
|
||||||
|
|
Loading…
Reference in a new issue