ENH:optimize the color of text in dark mode

Change-Id: I458250cfa43115b882ea4362e0e5620d8c5f8fb8
This commit is contained in:
tao wang 2023-05-30 20:59:07 +08:00 committed by Lane.Wei
parent 52aecca564
commit e1199884d8
2 changed files with 2 additions and 2 deletions

View file

@ -1192,7 +1192,7 @@ void AmsReplaceMaterialDialog::create()
label_title->SetForegroundColour(0x00AE42); label_title->SetForegroundColour(0x00AE42);
auto label_txt = new Label(this, _L("When the current material run out,the printer will continue to print in the following order.")); auto label_txt = new Label(this, _L("When the current material run out,the printer will continue to print in the following order."));
label_txt->SetFont(Label::Body_13); label_txt->SetFont(Label::Body_13);
label_txt->SetForegroundColour(0x323A3D); label_txt->SetForegroundColour(StateColor::darkModeColorFor(wxColour("#323A3C")));
label_txt->SetMinSize(wxSize(FromDIP(380), -1)); label_txt->SetMinSize(wxSize(FromDIP(380), -1));
label_txt->SetMaxSize(wxSize(FromDIP(380), -1)); label_txt->SetMaxSize(wxSize(FromDIP(380), -1));
label_txt->Wrap(FromDIP(380)); label_txt->Wrap(FromDIP(380));

View file

@ -32,7 +32,7 @@ MediaPlayCtrl::MediaPlayCtrl(wxWindow *parent, wxMediaCtrl2 *media_ctrl, const w
m_button_play->SetCanFocus(false); m_button_play->SetCanFocus(false);
m_label_status = new Label(this, ""); m_label_status = new Label(this, "");
m_label_status->SetForegroundColour(wxColour("#2C2C2E")); m_label_status->SetForegroundColour(wxColour("#323A3C"));
m_button_play->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](auto &e) { TogglePlay(); }); m_button_play->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](auto &e) { TogglePlay(); });
m_button_play->Bind(wxEVT_RIGHT_UP, [this](auto & e) { m_media_ctrl->Play(); }); m_button_play->Bind(wxEVT_RIGHT_UP, [this](auto & e) { m_media_ctrl->Play(); });