Skip to content

Commit

Permalink
Fixed: when using dark theme, adjust the "BLACK" escape colour into w…
Browse files Browse the repository at this point in the history
…hite-ish colour (and vice versa)

Signed-off-by: Eran Ifrah <eran@codelite.org>
  • Loading branch information
eranif committed Nov 30, 2024
1 parent e2ee79f commit 0c0f651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/lexer_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ void LexerConf::Apply(wxStyledTextCtrl* ctrl, bool applyKeywords)
ctrl->SetCaretPeriod(options->GetCaretBlinkPeriod());

// Do not allow for "black" colour on dark theme and white colour on light theme
if (GetLexerId() == wxSTC_LEX_ERRORLIST) {
if (ctrl->GetLexer() == wxSTC_LEX_ERRORLIST || ctrl->GetLexer() == wxSTC_LEX_TERMINAL) {
if (IsDark()) {
ctrl->StyleSetForeground(wxSTC_ERR_ES_BLACK, ctrl->StyleGetForeground(wxSTC_ERR_ES_WHITE));
} else {
Expand Down

0 comments on commit 0c0f651

Please sign in to comment.