Allow theme to change text color of highlighted text.
Fixes https://gitlab.com/kicad/code/kicad/issues/9716
This commit is contained in:
parent
2d48de2e4e
commit
212666e987
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue