Make default color UNSPECIFIED for new sheets and allows "clearing" the color
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6697
This commit is contained in:
parent
00918c68f5
commit
ece0a5ec8e
|
@ -37,7 +37,11 @@ PANEL_EESCHEMA_EDITING_OPTIONS::PANEL_EESCHEMA_EDITING_OPTIONS( SCH_EDIT_FRAME*
|
|||
m_frame( aFrame ),
|
||||
m_hPitch( aFrame, m_hPitchLabel, m_hPitchCtrl, m_hPitchUnits, true ),
|
||||
m_vPitch( aFrame, m_vPitchLabel, m_vPitchCtrl, m_vPitchUnits, true )
|
||||
{}
|
||||
{
|
||||
// Make the color swatch show "Clear Color" instead
|
||||
m_borderColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
||||
m_backgroundColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
||||
}
|
||||
|
||||
|
||||
bool PANEL_EESCHEMA_EDITING_OPTIONS::TransferDataToWindow()
|
||||
|
|
|
@ -139,10 +139,10 @@ EESCHEMA_SETTINGS::EESCHEMA_SETTINGS() :
|
|||
&m_Drawing.repeat_label_increment, 1, -10, 10 ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<COLOR4D>( "drawing.default_sheet_border_color",
|
||||
&m_Drawing.default_sheet_border_color, COLOR4D( MAGENTA ) ) );
|
||||
&m_Drawing.default_sheet_border_color, COLOR4D::UNSPECIFIED ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<COLOR4D>( "drawing.default_sheet_background_color",
|
||||
&m_Drawing.default_sheet_background_color, COLOR4D( WHITE ).WithAlpha( 0.0 ) ) );
|
||||
&m_Drawing.default_sheet_background_color, COLOR4D::UNSPECIFIED ) );
|
||||
|
||||
m_params.emplace_back( new PARAM_LIST<double>( "drawing.junction_size_mult_list",
|
||||
&m_Drawing.junction_size_mult_list, { 0.0, 1.7, 4.0, 6.0, 9.0, 12.0 } ) );
|
||||
|
|
Loading…
Reference in New Issue