mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-09 00:07:45 -07:00
FIX: Make the color visible
jira: [STUDIO-10249] Change-Id: I8490636f675787f0f2bf10917a85e2f9a075f4f7 (cherry picked from commit 4c8779d85c3df9b223d3af220994d689ed66ac41)
This commit is contained in:
parent
b1168c2b6e
commit
967ef78229
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue