From 4c8779d85c3df9b223d3af220994d689ed66ac41 Mon Sep 17 00:00:00 2001 From: "xin.zhang" Date: Mon, 24 Feb 2025 20:49:46 +0800 Subject: [PATCH] FIX: Make the color visible jira: [STUDIO-10249] Change-Id: I8490636f675787f0f2bf10917a85e2f9a075f4f7 --- src/slic3r/GUI/Widgets/AMSItem.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Widgets/AMSItem.cpp b/src/slic3r/GUI/Widgets/AMSItem.cpp index bf3c9d67e..43df5c7a5 100644 --- a/src/slic3r/GUI/Widgets/AMSItem.cpp +++ b/src/slic3r/GUI/Widgets/AMSItem.cpp @@ -2039,10 +2039,15 @@ static wxColour _get_diff_clr(wxWindow *win, wxColour pen_clr) /*STUDIO-10093 ge if (pen_clr.GetRGB() == wxWHITE->GetRGB()) { static int default_distance = 20; - pen_clr.Set(pen_clr.Red() - default_distance, pen_clr.Green() - default_distance, pen_clr.Blue() - default_distance); + pen_clr.Set(pen_clr.Red() - default_distance, pen_clr.Green() - default_distance, pen_clr.Blue() - default_distance, pen_clr.Alpha()); } } + if (pen_clr.Alpha() == 0)/*STUDIO-10249 Make the color visible*/ + { + pen_clr.Set(pen_clr.Red(), pen_clr.Green(), pen_clr.Blue(), 150); + } + return pen_clr; }