Commit 84e6ab02 authored by Frank Secilia's avatar Frank Secilia Committed by Orgad Shaneh

Mismatched parens background color now dark on dark backgrounds.

The color is not configurable, but on dark backgrounds, the color is now
dark magenta, rather than magenta.

Task-number: QTCREATORBUG-9025

Change-Id: I9925e598b30a13c8b9691d6e0e576c0087df38da
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 53e31576
......@@ -239,7 +239,8 @@ BaseTextEditorWidget::BaseTextEditorWidget(QWidget *parent)
d->m_formatRange = true;
d->m_matchFormat.setForeground(Qt::red);
d->m_matchFormat.setBackground(QColor(0xb4, 0xee, 0xb4));
d->m_mismatchFormat.setBackground(Qt::magenta);
d->m_mismatchFormat.setBackground(palette().color(QPalette::Base).value() < 128
? Qt::darkMagenta : Qt::magenta);
d->m_parenthesesMatchingTimer.setSingleShot(true);
connect(&d->m_parenthesesMatchingTimer, SIGNAL(timeout()), this, SLOT(_q_matchParentheses()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment