FIX:fixed macos overwriting title bar text colors

Change-Id: I617c27eebee47f6739532a02038359829245df27
This commit is contained in:
tao wang 2022-08-04 17:16:37 +08:00 committed by Lane.Wei
parent 1e857a6e23
commit b03a93d7fc
5 changed files with 19 additions and 3 deletions

View file

@ -742,7 +742,14 @@ void MainFrame::shutdown()
void MainFrame::update_title()
{
return;
return;
}
void MainFrame::update_title_colour_after_set_title()
{
#ifdef __WXOSX__
set_title_colour_after_set_title();
#endif
}
void MainFrame::show_option(bool show)

View file

@ -226,7 +226,8 @@ public:
void update_title();
void show_option(bool show);
void update_title_colour_after_set_title();
void show_option(bool show);
void init_tabpanel();
void create_preset_tabs();
//BBS: GUI refactor

View file

@ -5588,6 +5588,7 @@ void Plater::priv::set_project_name(const wxString& project_name)
wxGetApp().mainframe->topbar()->SetTitle(m_project_name);
#else
wxGetApp().mainframe->SetTitle(m_project_name);
wxGetApp().mainframe->update_title_colour_after_set_title();
#endif
}