FIX: label color

Change-Id: I1de550178601fab8844fac9aabf9728233a965bb
This commit is contained in:
chunmao.guo 2022-12-15 18:18:01 +08:00 committed by Lane.Wei
parent 9bc46daf40
commit 5066cc1736
2 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@ MediaPlayCtrl::MediaPlayCtrl(wxWindow *parent, wxMediaCtrl2 *media_ctrl, const w
m_button_play = new Button(this, "", "media_play", wxBORDER_NONE);
m_button_play->SetCanFocus(false);
m_label_status = new Label(this, "", LB_HYPERLINK);
m_label_status = new Label(this, "");
m_label_status->SetForegroundColour(wxColour("#2C2C2E"));
m_button_play->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](auto &e) { TogglePlay(); });

View File

@ -226,6 +226,7 @@ Label::Label(wxWindow *parent, wxFont const &font, wxString const &text, long st
this->font = font;
SetFont(font);
SetBackgroundColour(StaticBox::GetParentBackgroundColor(parent));
SetForegroundColour("#262E30");
if (style & LB_PROPAGATE_MOUSE_EVENT) {
for (auto evt : {
wxEVT_LEFT_UP, wxEVT_LEFT_DOWN})