7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-17 08:39:17 +00:00

Pcbnew: Keep edge.cuts fully visible in hide/dim inactive layers mode

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19006
This commit is contained in:
jean-pierre charras 2024-10-28 15:58:57 +01:00
parent 2391e5ecdc
commit 8057f7d420

View File

@ -437,15 +437,19 @@ COLOR4D PCB_RENDER_SETTINGS::GetColor( const BOARD_ITEM* aItem, int aLayer ) con
if( !isActive )
{
// Graphics on Edge_Cuts layers are not dimmed or hidden because they are
// in fact on all layers
if( m_ContrastModeDisplay == HIGH_CONTRAST_MODE::HIDDEN
|| IsNetnameLayer( aLayer )
|| hide )
{
color = COLOR4D::CLEAR;
if( originalLayer != Edge_Cuts )
color = COLOR4D::CLEAR;
}
else
{
color = color.Mix( m_layerColors[LAYER_PCB_BACKGROUND], m_hiContrastFactor );
if( originalLayer != Edge_Cuts )
color = color.Mix( m_layerColors[LAYER_PCB_BACKGROUND], m_hiContrastFactor );
// Reference images can't have their color mixed so just reduce the opacity a bit
// so they show through less