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

@ -491,6 +491,7 @@ wxBoxSizer* PreferencesDialog::create_item_darkmode_checkbox(wxString title, wxW
checkbox->Bind(wxEVT_TOGGLEBUTTON, [this, checkbox, param](wxCommandEvent& e) {
app_config->set(param, checkbox->GetValue() ? "1" : "0");
app_config->save();
wxGetApp().Update_dark_mode_flag();
//dark mode
#ifdef _MSW_DARK_MODE