FIX:optimized some ui for macos

Change-Id: I0451edc06d9dadfef3b9d1087bb863b4666bb276
This commit is contained in:
tao wang 2022-12-12 16:34:40 +08:00 committed by Lane.Wei
parent 5c9c72ee72
commit 8713c5ccc4
6 changed files with 15 additions and 3 deletions

View file

@ -273,6 +273,7 @@ void update_dark_config()
wxSystemAppearance app = wxSystemSettings::GetAppearance();
GUI::wxGetApp().app_config->set("dark_color_mode", app.IsDark() ? "1" : "0");
GUI::wxGetApp().app_config->save();
wxGetApp().Update_dark_mode_flag();
}