mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
FIX:fixed appconfig is not saved when switching dark mode
Change-Id: I77fc3808309a23497000c34b6047a359d12c4622
This commit is contained in:
parent
4a5c473058
commit
eca5897a25
22 changed files with 84 additions and 26 deletions
|
@ -268,6 +268,13 @@ void update_dark_ui(wxWindow* window)
|
|||
}
|
||||
#endif
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
CheckboxFileDialog::ExtraPanel::ExtraPanel(wxWindow *parent)
|
||||
: wxPanel(parent, wxID_ANY)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue