Browse Source

Set Scintilla cursor color for themes

Updates cursor to be visible even in dark themes

Fixes https://gitlab.com/kicad/code/kicad/issues/9398
6.0.7
Seth Hillbrand 4 years ago
parent
commit
4852a8afa1
  1. 2
      common/scintilla_tricks.cpp

2
common/scintilla_tricks.cpp

@ -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 );

Loading…
Cancel
Save