Fix some missing swatch background colours in EEschema dialogs.
This commit is contained in:
parent
3e257794c0
commit
9e8e241924
|
@ -35,6 +35,9 @@ DIALOG_JUNCTION_PROPS::DIALOG_JUNCTION_PROPS( SCH_EDIT_FRAME* aParent,
|
||||||
{
|
{
|
||||||
m_colorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
m_colorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
||||||
|
|
||||||
|
KIGFX::COLOR4D canvas = m_frame->GetColorSettings()->GetColor( LAYER_SCHEMATIC_BACKGROUND );
|
||||||
|
m_colorSwatch->SetSwatchBackground( canvas.ToColour() );
|
||||||
|
|
||||||
m_helpLabel1->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
m_helpLabel1->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
||||||
m_helpLabel2->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
m_helpLabel2->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,9 @@ DIALOG_LINE_PROPERTIES::DIALOG_LINE_PROPERTIES( SCH_EDIT_FRAME* aParent,
|
||||||
{
|
{
|
||||||
m_colorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
m_colorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
||||||
|
|
||||||
|
KIGFX::COLOR4D canvas = m_frame->GetColorSettings()->GetColor( LAYER_SCHEMATIC_BACKGROUND );
|
||||||
|
m_colorSwatch->SetSwatchBackground( canvas.ToColour() );
|
||||||
|
|
||||||
m_helpLabel1->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
m_helpLabel1->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
||||||
m_helpLabel2->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
m_helpLabel2->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,10 @@ DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES( SCH_EDIT_FRAME* aParent, SCH_S
|
||||||
|
|
||||||
m_fillColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
m_fillColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
||||||
|
|
||||||
|
KIGFX::COLOR4D canvas = m_frame->GetColorSettings()->GetColor( LAYER_SCHEMATIC_BACKGROUND );
|
||||||
|
m_borderColorSwatch->SetSwatchBackground( canvas.ToColour() );
|
||||||
|
m_fillColorSwatch->SetSwatchBackground( canvas.ToColour() );
|
||||||
|
|
||||||
if( m_frame->GetColorSettings()->GetOverrideSchItemColors() )
|
if( m_frame->GetColorSettings()->GetOverrideSchItemColors() )
|
||||||
m_infoBar->ShowMessage( _( "Note: individual item colors overridden in Preferences." ) );
|
m_infoBar->ShowMessage( _( "Note: individual item colors overridden in Preferences." ) );
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,9 @@ DIALOG_WIRE_BUS_PROPERTIES::DIALOG_WIRE_BUS_PROPERTIES( SCH_EDIT_FRAME* aParent,
|
||||||
{
|
{
|
||||||
m_colorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
m_colorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
||||||
|
|
||||||
|
KIGFX::COLOR4D canvas = m_frame->GetColorSettings()->GetColor( LAYER_SCHEMATIC_BACKGROUND );
|
||||||
|
m_colorSwatch->SetSwatchBackground( canvas.ToColour() );
|
||||||
|
|
||||||
m_helpLabel1->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
m_helpLabel1->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
||||||
m_helpLabel2->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
m_helpLabel2->SetFont( KIUI::GetInfoFont( this ).Italic() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue