From 14d4c3897971d007baf9f7f5ec082590c17c960f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 4 Sep 2023 14:16:32 +0100 Subject: [PATCH] Honour override-individual-item-colors setting for filled shapes. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15572 (cherry picked from commit d593257fbd9ab0058fcb975b33b8dc55eb1f8f8d) --- eeschema/sch_painter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index c9af16b123..2b27503569 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -754,7 +754,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 );