Lighter pads & tracks net names color. Proper rotation of text on symmetrical pads.
This commit is contained in:
parent
3841b0ac3a
commit
fb1f4ad8e5
|
@ -72,7 +72,8 @@ void PCB_RENDER_SETTINGS::ImportLegacyColors( COLORS_DESIGN_SETTINGS* aSettings
|
||||||
m_itemColors[PADS_HOLES_VISIBLE] = COLOR4D( 0.0, 0.5, 0.5, 1.0 );
|
m_itemColors[PADS_HOLES_VISIBLE] = COLOR4D( 0.0, 0.5, 0.5, 1.0 );
|
||||||
m_itemColors[VIAS_VISIBLE] = COLOR4D( 0.7, 0.7, 0.7, 1.0 );
|
m_itemColors[VIAS_VISIBLE] = COLOR4D( 0.7, 0.7, 0.7, 1.0 );
|
||||||
m_itemColors[PADS_VISIBLE] = COLOR4D( 0.7, 0.7, 0.7, 1.0 );
|
m_itemColors[PADS_VISIBLE] = COLOR4D( 0.7, 0.7, 0.7, 1.0 );
|
||||||
m_itemColors[TRACKS_NETNAMES_VISIBLE] = COLOR4D( 0.9, 0.9, 0.9, 1.0 );
|
m_itemColors[PADS_NETNAMES_VISIBLE] = COLOR4D( 0.8, 0.8, 0.8, 0.7 );
|
||||||
|
m_itemColors[TRACKS_NETNAMES_VISIBLE] = COLOR4D( 0.8, 0.8, 0.8, 0.7 );
|
||||||
|
|
||||||
Update();
|
Update();
|
||||||
}
|
}
|
||||||
|
@ -380,6 +381,11 @@ void PCB_PAINTER::draw( const D_PAD* aPad, int aLayer )
|
||||||
orientation -= M_PI / 2;
|
orientation -= M_PI / 2;
|
||||||
size.y = size.x * 4.0 / 3.0;
|
size.y = size.x * 4.0 / 3.0;
|
||||||
}
|
}
|
||||||
|
else if( size.x == size.y )
|
||||||
|
{
|
||||||
|
// If the text is displayed on a symmetrical pad, do not rotate it
|
||||||
|
orientation = 0.0;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
size.x = size.y * 3.0 / 4.0;
|
size.x = size.y * 3.0 / 4.0;
|
||||||
|
|
Loading…
Reference in New Issue