← Back to team overview

kicad-developers team mailing list archive

[PATCH] Dark Theme Fixups

 

Hi everyone,

This is my first post to the list, so please go easy on me. :D I have made a couple of changes to improve the appearance of the GUI for users with dark themes in Linux. A patch is attached.

* Removed toolbar gradient by adding wxAUI_TB_PLAIN_BACKGROUND to
  wxAuiToolBar style (gradient is the default).

* Removed the white border from the main project tree view
  by replacing style constant wxSW_3D with wxSW_3DSASH.

* Removed the white border from wxAui panes in KiCad manager,
  pcbnew, and eeschema by calling PaneBorder( false ) on AUI panes.

Here are some screenshots from my Arch Linux desktop running bspwm (GTK2):

Dark theme from trunk: http://i.imgur.com/o1ueuVm.png
Dark theme after fixups: http://i.imgur.com/TMdu8TF.png
Light theme from trunk: http://i.imgur.com/MohCz76.png
Light theme after fixups: http://i.imgur.com/Oj6Bi0F.png

NOTE: That third fixup involves a loop that runs before updating the wxAUI manager. I duplicate this code in 3 places where the white border was most prominent (toolbars in the manager, eeschema, and pcbnew). I assume this routine could be centralized and called before any time the AUI manager is updated, however I don't know the KiCad codebase well enough to approach this.

Thanks. KiCad rocks!

-Windsor
diff --git a/3d-viewer/3d_toolbar.cpp b/3d-viewer/3d_toolbar.cpp
index d24729f..5daf11f 100644
--- a/3d-viewer/3d_toolbar.cpp
+++ b/3d-viewer/3d_toolbar.cpp
@@ -45,7 +45,7 @@ void EDA_3D_FRAME::ReCreateMainToolbar()
     }
 
     m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                   wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                   wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_mainToolBar->AddTool( ID_RELOAD3D_BOARD, wxEmptyString,
diff --git a/cvpcb/class_DisplayFootprintsFrame.cpp b/cvpcb/class_DisplayFootprintsFrame.cpp
index 0b3a76a..8ff361d 100644
--- a/cvpcb/class_DisplayFootprintsFrame.cpp
+++ b/cvpcb/class_DisplayFootprintsFrame.cpp
@@ -170,7 +170,7 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar()
 
     // Create options tool bar.
     m_optionsToolBar = new wxAuiToolBar( this, ID_OPT_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_GRID, wxEmptyString, KiBitmap( grid_xpm ),
                                _( "Hide grid" ), wxITEM_CHECK );
@@ -214,7 +214,7 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar()
         return;
 
     m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     m_mainToolBar->AddTool( ID_OPTIONS_SETUP, wxEmptyString, KiBitmap( display_options_xpm ),
                             _( "Display options" ) );
diff --git a/cvpcb/tool_cvpcb.cpp b/cvpcb/tool_cvpcb.cpp
index b53f9c9..935d05b 100644
--- a/cvpcb/tool_cvpcb.cpp
+++ b/cvpcb/tool_cvpcb.cpp
@@ -47,7 +47,7 @@ void CVPCB_MAINFRAME::ReCreateHToolbar()
         return;
 
     m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     m_mainToolBar->AddTool( wxID_SAVE, wxEmptyString, KiBitmap( save_xpm ), SAVE_HLP_MSG );
 
diff --git a/eeschema/schframe.cpp b/eeschema/schframe.cpp
index 953e7f6..21ded0b 100644
--- a/eeschema/schframe.cpp
+++ b/eeschema/schframe.cpp
@@ -411,6 +411,13 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ):
         m_auimgr.AddPane( m_messagePanel, wxAuiPaneInfo( mesg ).Name( wxT( "MsgPanel" ) ).Bottom().
                           Layer(10) );
 
+    // remote the ugly 1-pixel white border on AUI panes
+    wxAuiPaneInfoArray panes = m_auimgr.GetAllPanes();
+    for ( size_t i = 0; i < panes.GetCount(); i++ )
+    {
+        m_auimgr.GetPane(panes.Item(i).name).PaneBorder( false );
+    }
+
     m_auimgr.Update();
 
     // Now Drawpanel is sized, we can use BestZoom to show the component (if any)
@@ -1323,4 +1330,3 @@ void SCH_EDIT_FRAME::UpdateTitle()
 
     SetTitle( title );
 }
-
diff --git a/eeschema/tool_lib.cpp b/eeschema/tool_lib.cpp
index 729b768..8745b0b 100644
--- a/eeschema/tool_lib.cpp
+++ b/eeschema/tool_lib.cpp
@@ -55,7 +55,7 @@ void LIB_EDIT_FRAME::ReCreateVToolbar()
         return;
 
     m_drawToolBar = new wxAuiToolBar( this, ID_V_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiBitmap( cursor_xpm ),
@@ -104,7 +104,7 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
         return;
 
     m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_mainToolBar->AddTool( ID_LIBEDIT_SAVE_CURRENT_LIB, wxEmptyString,
@@ -223,7 +223,7 @@ void LIB_EDIT_FRAME::CreateOptionToolbar()
         return;
 
     m_optionsToolBar = new wxAuiToolBar( this, ID_OPT_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_GRID, wxEmptyString, KiBitmap( grid_xpm ),
                                _( "Turn grid off" ), wxITEM_CHECK );
diff --git a/eeschema/tool_sch.cpp b/eeschema/tool_sch.cpp
index 8d399d4..214309f 100644
--- a/eeschema/tool_sch.cpp
+++ b/eeschema/tool_sch.cpp
@@ -48,7 +48,7 @@ void SCH_EDIT_FRAME::ReCreateHToolbar()
 
     wxString msg;
     m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     if( Kiface().IsSingle() )   // not when under a project mgr
@@ -184,7 +184,7 @@ void SCH_EDIT_FRAME::ReCreateVToolbar()
         return;
 
     m_drawToolBar = new wxAuiToolBar( this, ID_V_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiBitmap( cursor_xpm ),
@@ -266,7 +266,7 @@ void SCH_EDIT_FRAME::ReCreateOptToolbar()
         return;
 
     m_optionsToolBar = new wxAuiToolBar( this, ID_OPT_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_GRID, wxEmptyString,
                                KiBitmap( grid_xpm ),
diff --git a/eeschema/tool_viewlib.cpp b/eeschema/tool_viewlib.cpp
index 79a50bd..071bfc0 100644
--- a/eeschema/tool_viewlib.cpp
+++ b/eeschema/tool_viewlib.cpp
@@ -51,7 +51,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
     if( m_mainToolBar  == NULL )
     {
         m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                          wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                          wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
         // Set up toolbar
         m_mainToolBar->AddTool( ID_LIBVIEW_SELECT_LIB, wxEmptyString,
diff --git a/gerbview/toolbars_gerber.cpp b/gerbview/toolbars_gerber.cpp
index 9858655..4962aa4 100644
--- a/gerbview/toolbars_gerber.cpp
+++ b/gerbview/toolbars_gerber.cpp
@@ -51,7 +51,8 @@ void GERBVIEW_FRAME::ReCreateHToolbar( void )
         return;
 
     m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND |
+                                      wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_mainToolBar->AddTool( ID_GERBVIEW_ERASE_ALL, wxEmptyString,
@@ -128,7 +129,7 @@ void GERBVIEW_FRAME::ReCreateVToolbar( void )
         return;
 
     m_drawToolBar = new wxAuiToolBar( this, ID_V_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiBitmap( cursor_xpm ) );
@@ -145,7 +146,7 @@ void GERBVIEW_FRAME::ReCreateOptToolbar( void )
 
     // creation of tool bar options
     m_optionsToolBar = new wxAuiToolBar( this, ID_OPT_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_GRID, wxEmptyString, KiBitmap( grid_xpm ),
                                _( "Turn grid off" ), wxITEM_CHECK );
diff --git a/kicad/mainframe.cpp b/kicad/mainframe.cpp
index ae7c911..a47f4ac 100644
--- a/kicad/mainframe.cpp
+++ b/kicad/mainframe.cpp
@@ -111,6 +111,13 @@ KICAD_MANAGER_FRAME::KICAD_MANAGER_FRAME( wxWindow* parent,
     m_auimgr.GetPane( m_LeftWin ).MinSize( wxSize( 80, -1) );
     m_auimgr.GetPane( m_LeftWin ).BestSize(wxSize(m_leftWinWidth, -1) );
 
+    // remote the ugly 1-pixel white border on AUI panes
+    wxAuiPaneInfoArray panes = m_auimgr.GetAllPanes();
+    for ( size_t i = 0; i < panes.GetCount(); i++ )
+    {
+        m_auimgr.GetPane(panes.Item(i).name).PaneBorder( false );
+    }
+
     m_auimgr.Update();
 }
 
diff --git a/kicad/menubar.cpp b/kicad/menubar.cpp
index 130b661..7e7a01a 100644
--- a/kicad/menubar.cpp
+++ b/kicad/menubar.cpp
@@ -459,7 +459,7 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
 
     // Allocate memory for m_mainToolBar
     m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     // New
     m_mainToolBar->AddTool( ID_NEW_PROJECT, wxEmptyString,
diff --git a/kicad/tree_project_frame.cpp b/kicad/tree_project_frame.cpp
index 70aa256..fced752 100644
--- a/kicad/tree_project_frame.cpp
+++ b/kicad/tree_project_frame.cpp
@@ -126,7 +126,7 @@ TREE_PROJECT_FRAME::TREE_PROJECT_FRAME( KICAD_MANAGER_FRAME* parent ) :
                         ID_LEFT_FRAME,
                         wxDefaultPosition,
                         wxDefaultSize,
-                        wxNO_BORDER | wxSW_3D | wxTAB_TRAVERSAL )
+                        wxNO_BORDER | wxSW_3DSASH | wxTAB_TRAVERSAL )
 {
     m_Parent = parent;
     m_TreeProject = NULL;
diff --git a/pagelayout_editor/toolbars_pl_editor.cpp b/pagelayout_editor/toolbars_pl_editor.cpp
index ceac7fb..b755d92 100644
--- a/pagelayout_editor/toolbars_pl_editor.cpp
+++ b/pagelayout_editor/toolbars_pl_editor.cpp
@@ -45,7 +45,7 @@ void PL_EDITOR_FRAME::ReCreateHToolbar( void )
 
     // Standard file commands
     m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     m_mainToolBar->AddTool( wxID_NEW, wxEmptyString, KiBitmap( pagelayout_new_xpm ),
                             _( "New page layout design" ) );
@@ -152,7 +152,7 @@ void PL_EDITOR_FRAME::ReCreateVToolbar( void )
         return;
 
     m_drawToolBar = new wxAuiToolBar( this, ID_V_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiBitmap( cursor_xpm ) );
diff --git a/pcbnew/footprint_wizard_frame.cpp b/pcbnew/footprint_wizard_frame.cpp
index 81f2640..dbb68c8 100644
--- a/pcbnew/footprint_wizard_frame.cpp
+++ b/pcbnew/footprint_wizard_frame.cpp
@@ -568,7 +568,7 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateHToolbar()
     if( !m_mainToolBar )
     {
         m_mainToolBar = new wxAuiToolBar( this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
-                                          wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                          wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
         // Set up toolbar
         m_mainToolBar->AddTool( ID_FOOTPRINT_WIZARD_SELECT_WIZARD, wxEmptyString,
diff --git a/pcbnew/pcbframe.cpp b/pcbnew/pcbframe.cpp
index b19fca1..5334718 100644
--- a/pcbnew/pcbframe.cpp
+++ b/pcbnew/pcbframe.cpp
@@ -450,6 +450,13 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
     m_Layers->ReFillRender();   // Update colors in Render after the config is read
     syncLayerWidgetLayer();
 
+    // remote the ugly 1-pixel white border on AUI panes
+    wxAuiPaneInfoArray panes = m_auimgr.GetAllPanes();
+    for ( size_t i = 0; i < panes.GetCount(); i++ )
+    {
+        m_auimgr.GetPane(panes.Item(i).name).PaneBorder( false );
+    }
+
     m_auimgr.Update();
 
     setupTools();
diff --git a/pcbnew/tool_modedit.cpp b/pcbnew/tool_modedit.cpp
index 3f613e5..c651a38 100644
--- a/pcbnew/tool_modedit.cpp
+++ b/pcbnew/tool_modedit.cpp
@@ -47,7 +47,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
     wxString msg;
 
     m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_mainToolBar->AddTool( ID_MODEDIT_SELECT_CURRENT_LIB, wxEmptyString,
@@ -155,7 +155,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateVToolbar()
         return;
 
     m_drawToolBar = new wxAuiToolBar( this, ID_V_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiBitmap( cursor_xpm ),
@@ -203,7 +203,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar()
 
     // Create options tool bar.
     m_optionsToolBar = new wxAuiToolBar( this, ID_OPT_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
     m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_GRID, wxEmptyString, KiBitmap( grid_xpm ),
                                _( "Hide grid" ), wxITEM_CHECK );
 
@@ -251,7 +251,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateAuxiliaryToolbar()
         return;
 
     m_auxiliaryToolBar = new wxAuiToolBar( this, ID_AUX_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                           wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                           wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_auxiliaryToolBar->AddSeparator();
diff --git a/pcbnew/tool_modview.cpp b/pcbnew/tool_modview.cpp
index 5a56a35..62318f7 100644
--- a/pcbnew/tool_modview.cpp
+++ b/pcbnew/tool_modview.cpp
@@ -50,7 +50,7 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar()
     {
         m_mainToolBar = new wxAuiToolBar( this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
                                           wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT
-                                            | wxAUI_TB_OVERFLOW );
+                                            | wxAUI_TB_OVERFLOW | wxAUI_TB_PLAIN_BACKGROUND );
 
         // Set up toolbar
         m_mainToolBar->AddTool( ID_MODVIEW_SELECT_LIB, wxEmptyString,
diff --git a/pcbnew/tool_pcb.cpp b/pcbnew/tool_pcb.cpp
index ee27942..2df3c04 100644
--- a/pcbnew/tool_pcb.cpp
+++ b/pcbnew/tool_pcb.cpp
@@ -209,7 +209,7 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
     wxWindowUpdateLocker dummy( this );
 
     m_mainToolBar = new wxAuiToolBar( this, ID_H_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     if( Kiface().IsSingle() )
@@ -327,7 +327,7 @@ void PCB_EDIT_FRAME::ReCreateOptToolbar()
     wxWindowUpdateLocker dummy( this );
 
     m_optionsToolBar = new wxAuiToolBar( this, ID_OPT_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                         wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     m_optionsToolBar->AddTool( ID_TB_OPTIONS_DRC_OFF, wxEmptyString, KiBitmap( drc_off_xpm ),
                                _( "Enable design rule checking" ), wxITEM_CHECK );
@@ -417,7 +417,7 @@ void PCB_EDIT_FRAME::ReCreateVToolbar()
     wxWindowUpdateLocker dummy( this );
 
     m_drawToolBar = new wxAuiToolBar( this, ID_V_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                      wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiBitmap( cursor_xpm ),
@@ -495,7 +495,7 @@ void PCB_EDIT_FRAME::ReCreateMicrowaveVToolbar()
 
     m_microWaveToolBar = new wxAuiToolBar( this, ID_MICROWAVE_V_TOOLBAR, wxDefaultPosition,
                                            wxDefaultSize,
-                                           wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL );
+                                           wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_VERTICAL | wxAUI_TB_PLAIN_BACKGROUND );
 
     // Set up toolbar
     m_microWaveToolBar->AddTool( ID_PCB_MUWAVE_TOOL_SELF_CMD, wxEmptyString,
@@ -550,7 +550,7 @@ void PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar()
     }
 
     m_auxiliaryToolBar = new wxAuiToolBar( this, ID_AUX_TOOLBAR, wxDefaultPosition, wxDefaultSize,
-                                           wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT );
+                                           wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_PLAIN_BACKGROUND );
 
     /* Set up toolbar items */
 

Follow ups