forked from qt-creator/qt-creator
Added 'current line number' to color theme settings
Recently it was made to highlight black or write, which isn't nice for everybody. Now it is dark gray by default, and can be customized. Bold and italic are also supported.
This commit is contained in:
@@ -137,9 +137,9 @@ QString FormatDescription::trName() const
|
||||
|
||||
QColor FormatDescription::foreground() const
|
||||
{
|
||||
if (m_name == QLatin1String("LineNumber"))
|
||||
if (m_name == QLatin1String(Constants::C_LINE_NUMBER))
|
||||
return QApplication::palette().dark().color();
|
||||
if (m_name == QLatin1String("Parentheses"))
|
||||
if (m_name == QLatin1String(Constants::C_PARENTHESES))
|
||||
return QColor(Qt::red);
|
||||
return m_format.foreground();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user