mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH:Unmapped text for unknown material follows dark mode
jira: STUDIO-11066 Change-Id: I39af33cb02a93067ff22c9ada7dff119571d2b66 (cherry picked from commit 9a6a6d1b39dae215f02d64610e61107c4cc12eeb)
This commit is contained in:
@@ -439,6 +439,9 @@ void MaterialSyncItem::render(wxDC &dc)
|
||||
dc.DrawText(mapping_txt, wxPoint(GetSize().x / 2 + (GetSize().x / 2 - mapping_txt_size.x) / 2 - FromDIP(8) - FromDIP(real_left_offset), m_text_pos_y));
|
||||
}
|
||||
else {
|
||||
if (mcolor.Alpha() == 0) {//Because there is no unknown background color
|
||||
material_name_colour = StateColor::darkModeColorFor(wxColour(0x26, 0x2E, 0x30));
|
||||
}
|
||||
dc.SetTextForeground(material_name_colour);
|
||||
if (mapping_txt_size.x > GetSize().x - 10) {
|
||||
dc.SetFont(::Label::Body_10);
|
||||
|
||||
Reference in New Issue
Block a user