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

@ -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__