FIX: scoreDailog dark mode issue
Jira: 4570 Change-Id: I8be97b306a1494f73e3bba678ecc864e7ff88ca3
This commit is contained in:
parent
4e0c22f798
commit
a785aa056b
|
@ -4327,10 +4327,8 @@ wxBoxSizer* ScoreDialog::get_comment_text_sizer() {
|
||||||
|
|
||||||
void ScoreDialog::create_comment_text(const wxString& comment) {
|
void ScoreDialog::create_comment_text(const wxString& comment) {
|
||||||
m_comment_text = new wxTextCtrl(this, wxID_ANY, "", wxDefaultPosition, wxSize(FromDIP(492), FromDIP(104)), wxTE_MULTILINE);
|
m_comment_text = new wxTextCtrl(this, wxID_ANY, "", wxDefaultPosition, wxSize(FromDIP(492), FromDIP(104)), wxTE_MULTILINE);
|
||||||
if (wxGetApp().dark_mode()) {
|
m_comment_text->SetBackgroundColour(wxColor(*wxWHITE));
|
||||||
m_comment_text->SetForegroundColour(wxColor(*wxWHITE));
|
|
||||||
} else
|
|
||||||
m_comment_text->SetForegroundColour(wxColor(*wxBLACK));
|
|
||||||
if (!comment.empty()) {
|
if (!comment.empty()) {
|
||||||
m_comment_text->SetValue(comment);
|
m_comment_text->SetValue(comment);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue