Allow theme to change text color of highlighted text.

Fixes https://gitlab.com/kicad/code/kicad/issues/9716
This commit is contained in:
Jeff Young 2021-11-21 22:53:32 +00:00
parent 2d48de2e4e
commit 212666e987
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ void SCINTILLA_TRICKS::setupStyles()
wxColour foreground = dummy.GetForegroundColour(); wxColour foreground = dummy.GetForegroundColour();
wxColour background = dummy.GetBackgroundColour(); wxColour background = dummy.GetBackgroundColour();
wxColour highlight = wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ); wxColour highlight = wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT );
wxColour highlightText = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT ); wxColour highlightText = wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT );
m_te->StyleSetForeground( wxSTC_STYLE_DEFAULT, foreground ); m_te->StyleSetForeground( wxSTC_STYLE_DEFAULT, foreground );
m_te->StyleSetBackground( wxSTC_STYLE_DEFAULT, background ); m_te->StyleSetBackground( wxSTC_STYLE_DEFAULT, background );