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.
Now the foreground color is also set to the text selected color.
This commit is contained in:
jean-pierre charras 2019-07-02 19:05:29 +02:00
parent 21d9a3d4bd
commit 34e00bdb6d
1 changed files with 7 additions and 1 deletions

View File

@ -278,7 +278,10 @@ bool SYMBOL_TREE_SYNCHRONIZING_ADAPTER::GetAttr( wxDataViewItem const& aItem, un
#else #else
// mark the current library with background color // mark the current library with background color
if( node->Name == m_libMgr->GetCurrentLib() ) if( node->Name == m_libMgr->GetCurrentLib() )
aAttr.SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); {
aAttr.SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
aAttr.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT ) );
}
#endif #endif
break; break;
@ -297,7 +300,10 @@ bool SYMBOL_TREE_SYNCHRONIZING_ADAPTER::GetAttr( wxDataViewItem const& aItem, un
#else #else
// mark the current part with background color // mark the current part with background color
if( node->LibId == m_libMgr->GetCurrentLibId() ) if( node->LibId == m_libMgr->GetCurrentLibId() )
{
aAttr.SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); aAttr.SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
aAttr.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT ) );
}
#endif #endif
break; break;