Don't allow netclass highlighting to override net highlighting

This commit is contained in:
JamesJCode 2024-12-29 23:31:28 +00:00
parent 41d7711f06
commit a216369d72
2 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,8 @@ bool PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataFromWindow()
cfg->m_Selection.selection_thickness = KiROUND( m_selWidthCtrl->GetValue() );
cfg->m_Selection.highlight_thickness = KiROUND( m_highlightWidthCtrl->GetValue() );
cfg->m_Selection.highlight_netclass_colors = m_highlightNetclassColors->GetValue();
cfg->m_Selection.highlight_netclass_colors_thickness = m_colHighlightThickness->GetValue();
cfg->m_Selection.highlight_netclass_colors_thickness =
KiROUND( m_colHighlightThickness->GetValue() );
cfg->m_Selection.highlight_netclass_colors_alpha =
m_colHighlightTransparency->GetValue() / 100.0;

View File

@ -487,8 +487,7 @@ float SCH_PAINTER::getLineWidth( const SCH_ITEM* aItem, bool aDrawingShadows,
if( aDrawingShadows && aItem->IsType( g_ScaledSelectionTypes ) )
width += getShadowWidth( aItem->IsBrightened() );
}
if( aDrawingWireColorHighlights )
else if( aDrawingWireColorHighlights )
{
float colorHighlightWidth = schIUScale.MilsToIU( 15.0 );
EESCHEMA_SETTINGS* eeschemaCfg = eeconfig();
@ -1333,7 +1332,7 @@ void SCH_PAINTER::draw( const SCH_LINE* aLine, int aLayer )
float width = getLineWidth( aLine, drawingShadows, drawingNetColorHighlights );
LINE_STYLE lineStyle = aLine->GetEffectiveLineStyle();
if( highlightNetclassColors )
if( highlightNetclassColors && !aLine->IsBrightened() )
{
// Force default color for nets we are going to highlight
if( drawingWires )