|
|
@ -237,8 +237,6 @@ float SCH_PAINTER::getShadowWidth() |
|
|
|
|
|
|
|
COLOR4D SCH_PAINTER::getRenderColor( const EDA_ITEM* aItem, int aLayer, bool aDrawingShadows ) |
|
|
|
{ |
|
|
|
static COLOR4D highlightColor( 1.0, 0.3, 0.3, 1.0 ); |
|
|
|
|
|
|
|
COLOR4D color = m_schSettings.GetLayerColor( aLayer ); |
|
|
|
|
|
|
|
if( aItem->Type() == SCH_LINE_T ) |
|
|
@ -256,10 +254,6 @@ COLOR4D SCH_PAINTER::getRenderColor( const EDA_ITEM* aItem, int aLayer, bool aDr |
|
|
|
if( aDrawingShadows ) |
|
|
|
color = m_schSettings.GetLayerColor( LAYER_SELECTION_SHADOWS ).WithAlpha( 0.8 ); |
|
|
|
} |
|
|
|
else if( aItem->IsHighlighted() ) // Cross-probing
|
|
|
|
{ |
|
|
|
color = highlightColor; |
|
|
|
} |
|
|
|
|
|
|
|
if( m_schSettings.m_ShowDisabled ) |
|
|
|
color = color.Darken( 0.5f ); |
|
|
|