sch_painter.cpp: fix a few incorrect color selections Fix also dangling symbol thickness of bus entries
This commit is contained in:
parent
4fe58922aa
commit
f1346030d7
|
@ -922,6 +922,7 @@ void SCH_PAINTER::draw( SCH_TEXT *aText, int aLayer )
|
||||||
{
|
{
|
||||||
case SCH_HIERARCHICAL_LABEL_T: color = m_schSettings.GetLayerColor( LAYER_SHEETLABEL ); break;
|
case SCH_HIERARCHICAL_LABEL_T: color = m_schSettings.GetLayerColor( LAYER_SHEETLABEL ); break;
|
||||||
case SCH_GLOBAL_LABEL_T: color = m_schSettings.GetLayerColor( LAYER_GLOBLABEL ); break;
|
case SCH_GLOBAL_LABEL_T: color = m_schSettings.GetLayerColor( LAYER_GLOBLABEL ); break;
|
||||||
|
case SCH_LABEL_T: color = m_schSettings.GetLayerColor( LAYER_LOCLABEL ); break;
|
||||||
default: color = m_schSettings.GetLayerColor( LAYER_NOTES ); break;
|
default: color = m_schSettings.GetLayerColor( LAYER_NOTES ); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1240,7 +1241,9 @@ void SCH_PAINTER::draw( SCH_NO_CONNECT *aNC, int aLayer )
|
||||||
|
|
||||||
void SCH_PAINTER::draw( SCH_BUS_ENTRY_BASE *aEntry, int aLayer )
|
void SCH_PAINTER::draw( SCH_BUS_ENTRY_BASE *aEntry, int aLayer )
|
||||||
{
|
{
|
||||||
COLOR4D color = m_schSettings.GetLayerColor( LAYER_BUS );
|
COLOR4D color = aEntry->Type() == SCH_BUS_BUS_ENTRY_T ?
|
||||||
|
m_schSettings.GetLayerColor( LAYER_BUS )
|
||||||
|
: m_schSettings.GetLayerColor( LAYER_WIRE );
|
||||||
|
|
||||||
if( aEntry->IsMoving() )
|
if( aEntry->IsMoving() )
|
||||||
color = selectedBrightening( color );
|
color = selectedBrightening( color );
|
||||||
|
@ -1255,7 +1258,8 @@ void SCH_PAINTER::draw( SCH_BUS_ENTRY_BASE *aEntry, int aLayer )
|
||||||
|
|
||||||
m_gal->DrawLine( pos, endPos );
|
m_gal->DrawLine( pos, endPos );
|
||||||
|
|
||||||
m_gal->SetStrokeColor( m_schSettings.GetLayerColor( LAYER_BUS ) );
|
// Draw dangling symbols:
|
||||||
|
m_gal->SetLineWidth ( 1.0 );
|
||||||
|
|
||||||
if( aEntry->IsDanglingStart() )
|
if( aEntry->IsDanglingStart() )
|
||||||
m_gal->DrawCircle( pos, TARGET_BUSENTRY_RADIUS );
|
m_gal->DrawCircle( pos, TARGET_BUSENTRY_RADIUS );
|
||||||
|
|
Loading…
Reference in New Issue