From 91363dd93ca80faa9ace23edfe9ace8edadc38b3 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 29 Nov 2021 12:54:19 +0100 Subject: [PATCH] PANEL_EESCHEMA_COLOR_SETTINGS: fix a minor cosmetic issue. --- eeschema/dialogs/panel_eeschema_color_settings.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/eeschema/dialogs/panel_eeschema_color_settings.cpp b/eeschema/dialogs/panel_eeschema_color_settings.cpp index c5b1b2d25a..4464e70a37 100644 --- a/eeschema/dialogs/panel_eeschema_color_settings.cpp +++ b/eeschema/dialogs/panel_eeschema_color_settings.cpp @@ -271,6 +271,20 @@ void PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems() { SCH_LINE* wire = new SCH_LINE; wire->SetLayer( line.first ); + STROKE_PARAMS stroke = wire->GetStroke(); + stroke.SetWidth( Mils2iu( 6 ) ); + + if( line.first != LAYER_NOTES ) + { + stroke.SetPlotStyle( PLOT_DASH_TYPE::SOLID ); + + if( line.first == LAYER_BUS ) + stroke.SetWidth( Mils2iu( 12 ) ); + + } + + wire->SetStroke( stroke ); + wire->SetStartPoint( wxPoint( Mils2iu( line.second.first.x ), Mils2iu( line.second.first.y ) ) ); wire->SetEndPoint( wxPoint( Mils2iu( line.second.second.x ),