From d1ca84aa43a91c1be256e98576f90018e65fa054 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 14 Feb 2023 10:21:09 -0800 Subject: [PATCH] Don't desaturate the selection shadow Selection shadows are helpful when showing which elements are selected and there is no benefit (and some downside) to having their color removed. Fixes https://gitlab.com/kicad/code/kicad/issues/13878 (cherry picked from commit 9f8b25a0b086fdaa09ad8561c25fa3c04fe052dc) --- eeschema/sch_painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index 480004cacb..3c5bac986d 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -483,7 +483,7 @@ COLOR4D SCH_PAINTER::getRenderColor( const EDA_ITEM *aItem, int aLayer, bool aDr color = color.Darken( 0.5f ); } - if( aDimmed ) + if( aDimmed && !( aItem->IsSelected() && aDrawingShadows ) ) { COLOR4D sheetColour = m_schSettings.GetLayerColor( LAYER_SCHEMATIC_BACKGROUND ); color.Desaturate();