Set Scintilla cursor color for themes

Updates cursor to be visible even in dark themes

Fixes https://gitlab.com/kicad/code/kicad/issues/9398
This commit is contained in:
Seth Hillbrand 2021-10-14 10:10:22 -07:00
parent faba2b06c2
commit 4852a8afa1
1 changed files with 1 additions and 1 deletions

View File

@ -86,6 +86,7 @@ void SCINTILLA_TRICKS::setupStyles()
m_te->SetSelForeground( true, highlightText );
m_te->SetSelBackground( true, highlight );
m_te->SetCaretForeground( foreground );
if( !m_singleLine )
{
@ -105,7 +106,6 @@ void SCINTILLA_TRICKS::setupStyles()
unsigned char b = highlight.Blue();
wxColour::MakeGrey( &r, &g, &b );
highlight.Set( r, g, b );
m_te->StyleSetForeground( wxSTC_STYLE_BRACELIGHT, highlightText );
m_te->StyleSetBackground( wxSTC_STYLE_BRACELIGHT, highlight );
m_te->StyleSetForeground( wxSTC_STYLE_BRACEBAD, *wxRED );