ENH:wxStaticText set the default foreground colour

Change-Id: Ifb03554848bc869f8605fb10945e7681147204d5
This commit is contained in:
tao wang 2022-12-21 11:58:15 +08:00 committed by Lane.Wei
parent 64a635608c
commit 4d8d4cb69c
13 changed files with 29 additions and 0 deletions

View file

@ -382,6 +382,7 @@ wxString AMSSetting::append_title(wxString text)
{
wxString lab;
auto * widget = new wxStaticText(m_panel_body, wxID_ANY, text, wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT);
widget->SetForegroundColour(*wxBLACK);
widget->Wrap(AMS_SETTING_BODY_WIDTH);
widget->SetMinSize(wxSize(AMS_SETTING_BODY_WIDTH, -1));
lab = widget->GetLabel();