From a785aa056bbe4fd544875a86fe771a02bb38f7a3 Mon Sep 17 00:00:00 2001 From: "maosheng.wei" Date: Thu, 16 Nov 2023 16:55:18 +0800 Subject: [PATCH] FIX: scoreDailog dark mode issue Jira: 4570 Change-Id: I8be97b306a1494f73e3bba678ecc864e7ff88ca3 --- src/slic3r/GUI/StatusPanel.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index 111767f7c..e94133005 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -4327,10 +4327,8 @@ wxBoxSizer* ScoreDialog::get_comment_text_sizer() { void ScoreDialog::create_comment_text(const wxString& comment) { m_comment_text = new wxTextCtrl(this, wxID_ANY, "", wxDefaultPosition, wxSize(FromDIP(492), FromDIP(104)), wxTE_MULTILINE); - if (wxGetApp().dark_mode()) { - m_comment_text->SetForegroundColour(wxColor(*wxWHITE)); - } else - m_comment_text->SetForegroundColour(wxColor(*wxBLACK)); + m_comment_text->SetBackgroundColour(wxColor(*wxWHITE)); + if (!comment.empty()) { m_comment_text->SetValue(comment); }