FIX: Make the color visible
jira: [STUDIO-10249] Change-Id: I8490636f675787f0f2bf10917a85e2f9a075f4f7
This commit is contained in:
parent
d504010ee0
commit
4c8779d85c
|
@ -2039,10 +2039,15 @@ static wxColour _get_diff_clr(wxWindow *win, wxColour pen_clr) /*STUDIO-10093 ge
|
||||||
if (pen_clr.GetRGB() == wxWHITE->GetRGB())
|
if (pen_clr.GetRGB() == wxWHITE->GetRGB())
|
||||||
{
|
{
|
||||||
static int default_distance = 20;
|
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;
|
return pen_clr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue