Library Editor: do not change background for the active part/library

This commit is contained in:
Maciej Suminski 2017-11-20 21:25:40 +01:00
parent ed059383c7
commit 4a942a9810
1 changed files with 2 additions and 6 deletions

View File

@ -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: