From dc08cf32526158d74ca2ccc3753c4b7c9baac5e3 Mon Sep 17 00:00:00 2001 From: John Beard Date: Thu, 23 May 2024 16:49:27 +0800 Subject: [PATCH] Eeschema: Also make 'note' backgrounds translucent on selection For the same reason as device backgrounds - it obscures everything else while moving a filled shape. (cherry pick of commit 0bcd5e579568760c53bfa2ba2d5d701da351ddb1) --- eeschema/sch_painter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index 22cdb00489..9513107d4f 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -493,8 +493,9 @@ COLOR4D SCH_PAINTER::getRenderColor( const EDA_ITEM* aItem, int aLayer, bool aDr if( aDrawingShadows ) color = m_schSettings.GetLayerColor( LAYER_SELECTION_SHADOWS ); } - else if( aItem->IsSelected() - && ( aLayer == LAYER_DEVICE_BACKGROUND || aLayer == LAYER_SHEET_BACKGROUND ) ) + else if( aItem->IsSelected() && ( aLayer == LAYER_DEVICE_BACKGROUND + || aLayer == LAYER_SHEET_BACKGROUND + || aLayer == LAYER_NOTES_BACKGROUND ) ) { // Selected items will be painted over all other items, so make backgrounds translucent so // that non-selected overlapping objects are visible