Skip to content

Commit 0429484

Browse files
committed
Fix setting color for item counter
Fixes #2717
1 parent 30c6363 commit 0429484

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/gui/tabicons.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,6 @@ void setDefaultTabItemCounterStyle(QWidget *widget)
122122
else
123123
font.setPixelSize( static_cast<int>(font.pixelSize() * 0.7) );
124124
widget->setFont(font);
125-
126-
QPalette pal = widget->palette();
127-
const QPalette::ColorRole role = widget->foregroundRole();
128-
QColor color = pal.color(role);
129-
color.setAlpha( qMax(50, color.alpha() - 100) );
130-
color.setRed( qMin(255, color.red() + 120) );
131-
pal.setColor(role, color);
132-
widget->setPalette(pal);
133125
}
134126

135127
void setComboBoxItems(QComboBox *comboBox, const QList<QString> &items)

0 commit comments

Comments
 (0)