FIX: set the correct color for ext even if not match, since we can select it.

jira: [STUDIO-12706]
Change-Id: Iccf01a6d42872af9d8c48a82731dec99981ad5c2
(cherry picked from commit 08d4a458e7a0bd19f92aecb900a84dbdefb037b0)
This commit is contained in:
xin.zhang
2025-06-13 15:08:44 +08:00
committed by Noisyfox
parent 7044bf0022
commit a036994e0a

View File

@@ -1361,7 +1361,7 @@ void AmsMapingPopup::add_ext_ams_mapping(TrayData tray_data, MappingItem* item)
item->set_data(m_tag_material, tray_data.colour, tray_data.name, false, tray_data);
}
else {
item->set_data(m_tag_material, wxColour(0xEE, 0xEE, 0xEE), tray_data.name, false, tray_data, true);
item->set_data(m_tag_material, tray_data.colour, tray_data.name, false, tray_data, true);
m_has_unmatch_filament = true;
}
@@ -1624,7 +1624,7 @@ void MappingItem::doRender(wxDC &dc)
}
}
}
else if (color.Alpha() == 0 && !m_unmatch) {
else if (color.Alpha() == 0) {
dc.DrawBitmap(m_transparent_mapping_item.bmp(), 0, (size.y - MAPPING_ITEM_REAL_SIZE.y) / 2 + get_remain_area_height());
}
else {