FIX:fixed some issues for dark mode

Change-Id: I6b2b75507cf8a72672cce39cf7d8af8773723c22
This commit is contained in:
tao wang 2022-12-05 19:42:05 +08:00 committed by Lane.Wei
parent 0acad21707
commit 6f1040f0df
7 changed files with 18 additions and 47 deletions

View file

@ -19,7 +19,6 @@ ParamsDialog::ParamsDialog(wxWindow * parent)
wxDefaultSize, wxCAPTION | wxCLOSE_BOX | wxRESIZE_BORDER)
{
m_panel = new ParamsPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBK_LEFT | wxTAB_TRAVERSAL);
auto* topsizer = new wxBoxSizer(wxVERTICAL);
topsizer->Add(m_panel, 1, wxALL | wxEXPAND, 0, NULL);
@ -57,15 +56,15 @@ ParamsDialog::ParamsDialog(wxWindow * parent)
wxGetApp().sidebar().finish_param_edit();
});
wxGetApp().UpdateDlgDarkUI(this);
//wxGetApp().UpdateDlgDarkUI(this);
}
void ParamsDialog::Popup()
{
wxGetApp().UpdateDlgDarkUI(this);
#ifdef __WIN32__
Reparent(wxGetApp().mainframe);
#endif
wxGetApp().UpdateDlgDarkUI(this);
Center();
Show();
}