diff --git a/src/slic3r/GUI/DragDropPanel.cpp b/src/slic3r/GUI/DragDropPanel.cpp index c0926fd9f..d2223e35a 100644 --- a/src/slic3r/GUI/DragDropPanel.cpp +++ b/src/slic3r/GUI/DragDropPanel.cpp @@ -134,7 +134,10 @@ void ColorPanel::OnPaint(wxPaintEvent &event) dc.SetTextForeground(m_color.GetLuminance() < 0.51 ? *wxWHITE : *wxBLACK); // set text color dc.DrawLabel(label, wxRect(0, 0, svg_size, svg_size), wxALIGN_CENTER); - dc.SetTextForeground(*wxBLACK); + if(m_parent) + dc.SetTextForeground(this->m_parent->GetBackgroundColour().GetLuminance() < 0.51 ? *wxWHITE : *wxBLACK); + else + dc.SetTextForeground(*wxBLACK); if (type_label.length() > 4) { // text is too long wxString first = type_label.Mid(0, 4);