ENH:Unmapped text for unknown material follows dark mode

jira: STUDIO-11066
Change-Id: I39af33cb02a93067ff22c9ada7dff119571d2b66
This commit is contained in:
zhou.xu 2025-03-23 14:04:05 +08:00 committed by lane.wei
parent cc046be42d
commit 9a6a6d1b39
1 changed files with 3 additions and 0 deletions

View File

@ -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);