Honour override-individual-item-colors setting for filled shapes.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15572
This commit is contained in:
Jeff Young 2023-09-04 14:16:32 +01:00
parent 07ecdc5fbb
commit d593257fbd
1 changed files with 5 additions and 1 deletions

View File

@ -841,7 +841,11 @@ bool SCH_PAINTER::setDeviceColors( const LIB_ITEM* aItem, int aLayer, bool aDimm
{
COLOR4D fillColour = shape->GetFillColor();
if( aDimmed )
if( m_schSettings.m_OverrideItemColors )
{
fillColour = getRenderColor( aItem, LAYER_DEVICE_BACKGROUND, false, aDimmed );
}
else if( aDimmed )
{
fillColour = fillColour.Mix(
m_schSettings.GetLayerColor( LAYER_SCHEMATIC_BACKGROUND ), 0.5f );