Minot cosmetic enhancement

This commit is contained in:
jean-pierre charras 2018-10-11 11:26:59 +02:00
parent ab1f016132
commit 0dfd0c5f52
2 changed files with 5 additions and 1 deletions

View File

@ -398,6 +398,10 @@ void COLOR4D::FromHSV( double aInH, double aInS, double aInV )
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;
ToHSV( h, s, v, true );

View File

@ -303,7 +303,7 @@ void SCH_PAINTER::defaultColors( const LIB_ITEM *aItem )
if( aItem->IsMoving() )
{
fg = selectedBrightening( fg );
bg = bg.Saturate( 0.7 ).WithAlpha( 0.66 );
bg = selectedBrightening( bg );
}
m_gal->SetIsStroke( true );