From a036994e0a8030fc95ec51de726f57e87417d4c9 Mon Sep 17 00:00:00 2001 From: "xin.zhang" Date: Fri, 13 Jun 2025 15:08:44 +0800 Subject: [PATCH] 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) --- src/slic3r/GUI/AmsMappingPopup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/AmsMappingPopup.cpp b/src/slic3r/GUI/AmsMappingPopup.cpp index d02c934637..2d0880b58b 100644 --- a/src/slic3r/GUI/AmsMappingPopup.cpp +++ b/src/slic3r/GUI/AmsMappingPopup.cpp @@ -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 {