mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX:optimized some ui for macos
Change-Id: I0451edc06d9dadfef3b9d1087bb863b4666bb276
This commit is contained in:
parent
5c9c72ee72
commit
8713c5ccc4
6 changed files with 15 additions and 3 deletions
|
@ -2130,6 +2130,7 @@ bool GUI_App::on_init_inner()
|
|||
// initialize label colors and fonts
|
||||
init_label_colours();
|
||||
init_fonts();
|
||||
wxGetApp().Update_dark_mode_flag();
|
||||
|
||||
|
||||
#ifdef _MSW_DARK_MODE
|
||||
|
@ -2721,8 +2722,9 @@ void GUI_App::UpdateDarkUI(wxWindow* window, bool highlited/* = false*/, bool ju
|
|||
return;
|
||||
}
|
||||
|
||||
if (m_is_dark_mode != dark_mode() )
|
||||
m_is_dark_mode = dark_mode();
|
||||
|
||||
/*if (m_is_dark_mode != dark_mode() )
|
||||
m_is_dark_mode = dark_mode();*/
|
||||
|
||||
|
||||
if (m_is_dark_mode) {
|
||||
|
@ -2778,6 +2780,11 @@ void GUI_App::UpdateDarkUIWin(wxWindow* win)
|
|||
update_dark_children_ui(win);
|
||||
}
|
||||
|
||||
void GUI_App::Update_dark_mode_flag()
|
||||
{
|
||||
m_is_dark_mode = dark_mode();
|
||||
}
|
||||
|
||||
void GUI_App::UpdateDlgDarkUI(wxDialog* dlg)
|
||||
{
|
||||
#ifdef __WINDOWS__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue