Set swatch background colors.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17564
This commit is contained in:
parent
a678d0d710
commit
bda0a73c63
|
@ -105,6 +105,10 @@ DIALOG_TABLE_PROPERTIES::DIALOG_TABLE_PROPERTIES( SCH_EDIT_FRAME* aFrame, SCH_TA
|
|||
m_borderStyleCombo->Append( DEFAULT_STYLE );
|
||||
m_separatorsStyleCombo->Append( DEFAULT_STYLE );
|
||||
|
||||
KIGFX::COLOR4D canvas = aFrame->GetColorSettings()->GetColor( LAYER_SCHEMATIC_BACKGROUND );
|
||||
m_borderColorSwatch->SetSwatchBackground( canvas );
|
||||
m_separatorsColorSwatch->SetSwatchBackground( canvas );
|
||||
|
||||
if( m_frame->GetColorSettings()->GetOverrideSchItemColors() )
|
||||
m_infoBar->ShowMessage( _( "Note: individual item colors overridden in Preferences." ) );
|
||||
|
||||
|
|
|
@ -68,6 +68,10 @@ DIALOG_TABLECELL_PROPERTIES::DIALOG_TABLECELL_PROPERTIES( SCH_EDIT_FRAME* aFrame
|
|||
m_vAlignBottom->SetIsRadioButton();
|
||||
m_vAlignBottom->SetBitmap( KiBitmapBundle( BITMAPS::text_valign_bottom ) );
|
||||
|
||||
KIGFX::COLOR4D canvas = aFrame->GetColorSettings()->GetColor( LAYER_SCHEMATIC_BACKGROUND );
|
||||
m_textColorSwatch->SetSwatchBackground( canvas );
|
||||
m_fillColorSwatch->SetSwatchBackground( canvas );
|
||||
|
||||
SetupStandardButtons();
|
||||
Layout();
|
||||
|
||||
|
|
Loading…
Reference in New Issue