From 4a942a9810fde6ea79dc745f4589a8ed020f9890 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 20 Nov 2017 21:25:40 +0100 Subject: [PATCH] Library Editor: do not change background for the active part/library --- eeschema/lib_manager_adapter.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/eeschema/lib_manager_adapter.cpp b/eeschema/lib_manager_adapter.cpp index 23f5d6e8db..7dca13b50a 100644 --- a/eeschema/lib_manager_adapter.cpp +++ b/eeschema/lib_manager_adapter.cpp @@ -222,10 +222,8 @@ bool LIB_MANAGER_ADAPTER::GetAttr( wxDataViewItem const& aItem, unsigned int aCo // mark current library with inverted colors if( node->Name == m_libMgr->GetCurrentLib() ) - { aAttr.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); - aAttr.SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) ); - } + break; case CMP_TREE_NODE::LIBID: @@ -237,10 +235,8 @@ bool LIB_MANAGER_ADAPTER::GetAttr( wxDataViewItem const& aItem, unsigned int aCo // mark current library with inverted colors if( node->LibId == m_libMgr->GetCurrentLibId() ) - { aAttr.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); - aAttr.SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) ); - } + break; default: