mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
FIX: Make the color visible
jira: [STUDIO-10249] Change-Id: I8490636f675787f0f2bf10917a85e2f9a075f4f7 (cherry picked from commit 4c8779d85c3df9b223d3af220994d689ed66ac41)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user