From f4c1730b7c707a1e57d553363798645e1b159c3b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 18 Jul 2019 14:54:52 +0200 Subject: [PATCH] Pcbnew, footprint tree selector: make the selected items 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. Similar to fix 34e00bdb6d, but for the fp editor. --- pcbnew/fp_tree_synchronizing_adapter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/fp_tree_synchronizing_adapter.cpp b/pcbnew/fp_tree_synchronizing_adapter.cpp index fb1d927995..f9bb34da15 100644 --- a/pcbnew/fp_tree_synchronizing_adapter.cpp +++ b/pcbnew/fp_tree_synchronizing_adapter.cpp @@ -233,6 +233,7 @@ bool FP_TREE_SYNCHRONIZING_ADAPTER::GetAttr( wxDataViewItem const& aItem, unsign aAttr.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); #else aAttr.SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); + aAttr.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT ) ); #endif // mark modified libs with bold font @@ -250,6 +251,7 @@ bool FP_TREE_SYNCHRONIZING_ADAPTER::GetAttr( wxDataViewItem const& aItem, unsign aAttr.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); #else aAttr.SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); + aAttr.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT ) ); #endif // mark modified part with bold font