Commit cb500bfc authored by Dominik Haumann's avatar Dominik Haumann

Tabbar: use QPalette::WindowText role instead of ButtonText role as foreground color

BUG: 354630
parent eced8742
......@@ -166,7 +166,7 @@ void KateTabButton::paintEvent(QPaintEvent *ev)
const QString elidedText = QFontMetrics(font()).elidedText (text(), Qt::ElideMiddle, w);
const QRect textRect(leftMargin, 0, w, height());
const QPalette pal = QApplication::palette();
style()->drawItemText(&p, textRect, Qt::AlignHCenter | Qt::AlignVCenter, pal, true, elidedText);
style()->drawItemText(&p, textRect, Qt::AlignHCenter | Qt::AlignVCenter, pal, true, elidedText, QPalette::WindowText);
}
void KateTabButton::mousePressEvent(QMouseEvent *ev)
......
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