FIX:supports dark mode on linux systems

Change-Id: I424f4a686ffe0d25075022b7e58c89d2683fcea2
This commit is contained in:
tao wang 2023-05-23 15:33:59 +08:00 committed by Lane.Wei
parent bda8d1cb98
commit 8e41e6cee2
2 changed files with 2 additions and 3 deletions

View file

@ -2354,7 +2354,7 @@ bool GUI_App::on_init_inner()
load_language(wxString(), true);
#ifdef _MSW_DARK_MODE
#ifdef __APPLE__
#ifndef __WINDOWS__
wxSystemAppearance app = wxSystemSettings::GetAppearance();
GUI::wxGetApp().app_config->set("dark_color_mode", app.IsDark() ? "1" : "0");
GUI::wxGetApp().app_config->save();