From 1607ceaf3ec6c72de078e59f0b00d9e5d195e70b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 28 Aug 2019 09:34:46 +0200 Subject: [PATCH] Eeschema, symbol tree selector: make the selected lib and symbol readable. Previously, the background was highlighted, but not the text. On Windows, the text was unreadable, until it was selected. From Master, commit 34e00bdb. --- eeschema/symbol_tree_synchronizing_adapter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eeschema/symbol_tree_synchronizing_adapter.cpp b/eeschema/symbol_tree_synchronizing_adapter.cpp index 10fe46bd10..79b0017bd3 100644 --- a/eeschema/symbol_tree_synchronizing_adapter.cpp +++ b/eeschema/symbol_tree_synchronizing_adapter.cpp @@ -269,7 +269,10 @@ bool SYMBOL_TREE_SYNCHRONIZING_ADAPTER::GetAttr( wxDataViewItem const& aItem, un #else // mark the current library with background color if( node->Name == m_libMgr->GetCurrentLib() ) + { aAttr.SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); + aAttr.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT ) ); + } #endif break; @@ -288,7 +291,10 @@ bool SYMBOL_TREE_SYNCHRONIZING_ADAPTER::GetAttr( wxDataViewItem const& aItem, un #else // mark the current part with background color if( node->LibId == m_libMgr->GetCurrentLibId() ) + { aAttr.SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); + aAttr.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT ) ); + } #endif break;