Minot cosmetic enhancement
This commit is contained in:
parent
ab1f016132
commit
0dfd0c5f52
|
@ -398,6 +398,10 @@ void COLOR4D::FromHSV( double aInH, double aInS, double aInV )
|
||||||
|
|
||||||
COLOR4D& COLOR4D::Saturate( double aFactor )
|
COLOR4D& COLOR4D::Saturate( double aFactor )
|
||||||
{
|
{
|
||||||
|
// One can saturate a color only when r, v, b are not equal
|
||||||
|
if( r == g && r == b )
|
||||||
|
return *this;
|
||||||
|
|
||||||
double h, s, v;
|
double h, s, v;
|
||||||
|
|
||||||
ToHSV( h, s, v, true );
|
ToHSV( h, s, v, true );
|
||||||
|
|
|
@ -303,7 +303,7 @@ void SCH_PAINTER::defaultColors( const LIB_ITEM *aItem )
|
||||||
if( aItem->IsMoving() )
|
if( aItem->IsMoving() )
|
||||||
{
|
{
|
||||||
fg = selectedBrightening( fg );
|
fg = selectedBrightening( fg );
|
||||||
bg = bg.Saturate( 0.7 ).WithAlpha( 0.66 );
|
bg = selectedBrightening( bg );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_gal->SetIsStroke( true );
|
m_gal->SetIsStroke( true );
|
||||||
|
|
Loading…
Reference in New Issue