FIX:use the correct method to update the dark mode of the window

jira:[STUDIO-11511]

Change-Id: Ie359e391e3d511729b4a777376b89e5bceda161c
This commit is contained in:
tao wang 2025-05-14 21:01:55 +08:00 committed by lane.wei
parent 43bcbe63a0
commit bdc864bf10

View File

@ -24,7 +24,7 @@ static std::string float_to_string_with_precision(float value, int precision = 3
}
AMSMaterialsSetting::AMSMaterialsSetting(wxWindow *parent, wxWindowID id)
: DPIDialog(parent, id, _L("AMS Materials Setting"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE)
: DPIDialog(parent, id, _L("AMS Materials Setting"), wxDefaultPosition, wxDefaultSize, wxCAPTION | wxCLOSE_BOX)
, m_color_picker_popup(ColorPickerPopup(this))
{
create();
@ -822,7 +822,7 @@ bool AMSMaterialsSetting::Show(bool show)
m_input_k_val->Show();
Layout();
Fit();
wxGetApp().UpdateDarkUI(this);
wxGetApp().UpdateDlgDarkUI(this);
}
return DPIDialog::Show(show);
}