Consolidate wx aui dock art color setting
This commit is contained in:
parent
eac2700af6
commit
ce3a84f579
|
@ -136,6 +136,11 @@ WX_AUI_DOCK_ART::WX_AUI_DOCK_ART() : wxAuiDefaultDockArt()
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SetColour( wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR,
|
||||||
|
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
|
||||||
|
SetColour( wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR,
|
||||||
|
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
|
||||||
|
|
||||||
// Turn off the ridiculous looking gradient
|
// Turn off the ridiculous looking gradient
|
||||||
m_gradientType = wxAUI_GRADIENT_NONE;
|
m_gradientType = wxAUI_GRADIENT_NONE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,11 +164,6 @@ GERBVIEW_FRAME::GERBVIEW_FRAME( KIWAY* aKiway, wxWindow* aParent )
|
||||||
|
|
||||||
m_auimgr.AddPane( GetCanvas(), EDA_PANE().Canvas().Name( "DrawFrame" ).Center() );
|
m_auimgr.AddPane( GetCanvas(), EDA_PANE().Canvas().Name( "DrawFrame" ).Center() );
|
||||||
|
|
||||||
m_auimgr.GetArtProvider()->SetColour( wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR,
|
|
||||||
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
|
|
||||||
m_auimgr.GetArtProvider()->SetColour( wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR,
|
|
||||||
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
|
|
||||||
|
|
||||||
ReFillLayerWidget(); // this is near end because contents establish size
|
ReFillLayerWidget(); // this is near end because contents establish size
|
||||||
m_auimgr.Update();
|
m_auimgr.Update();
|
||||||
|
|
||||||
|
|
|
@ -160,11 +160,6 @@ KICAD_MANAGER_FRAME::KICAD_MANAGER_FRAME( wxWindow* parent, const wxString& titl
|
||||||
.Caption( _( "Editors" ) ).PaneBorder( false )
|
.Caption( _( "Editors" ) ).PaneBorder( false )
|
||||||
.MinSize( m_launcher->GetBestSize() ) );
|
.MinSize( m_launcher->GetBestSize() ) );
|
||||||
|
|
||||||
m_auimgr.GetArtProvider()->SetColour( wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR,
|
|
||||||
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
|
|
||||||
m_auimgr.GetArtProvider()->SetColour( wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR,
|
|
||||||
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
|
|
||||||
|
|
||||||
m_auimgr.Update();
|
m_auimgr.Update();
|
||||||
|
|
||||||
// Now the actual m_leftWin size is set, give it a reasonable min width
|
// Now the actual m_leftWin size is set, give it a reasonable min width
|
||||||
|
|
|
@ -250,11 +250,6 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent,
|
||||||
|
|
||||||
ActivateGalCanvas();
|
ActivateGalCanvas();
|
||||||
|
|
||||||
m_auimgr.GetArtProvider()->SetColour( wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR,
|
|
||||||
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
|
|
||||||
m_auimgr.GetArtProvider()->SetColour( wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR,
|
|
||||||
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
|
|
||||||
|
|
||||||
FinishAUIInitialization();
|
FinishAUIInitialization();
|
||||||
|
|
||||||
if( m_settings->m_LibWidth > 0 )
|
if( m_settings->m_LibWidth > 0 )
|
||||||
|
|
|
@ -289,11 +289,6 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
// The selection filter doesn't need to grow in the vertical direction when docked
|
// The selection filter doesn't need to grow in the vertical direction when docked
|
||||||
m_auimgr.GetPane( "SelectionFilter" ).dock_proportion = 0;
|
m_auimgr.GetPane( "SelectionFilter" ).dock_proportion = 0;
|
||||||
|
|
||||||
m_auimgr.GetArtProvider()->SetColour( wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR,
|
|
||||||
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
|
|
||||||
m_auimgr.GetArtProvider()->SetColour( wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR,
|
|
||||||
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
|
|
||||||
|
|
||||||
FinishAUIInitialization();
|
FinishAUIInitialization();
|
||||||
|
|
||||||
if( PCBNEW_SETTINGS* settings = dynamic_cast<PCBNEW_SETTINGS*>( config() ) )
|
if( PCBNEW_SETTINGS* settings = dynamic_cast<PCBNEW_SETTINGS*>( config() ) )
|
||||||
|
|
Loading…
Reference in New Issue