Reduced text highlight on selected item

This is a cosmetic fix for the sidebar.
The highlight contrast is too high now that
the background is darker.
This commit is contained in:
Jens Bache-Wiig
2010-02-24 12:06:06 +01:00
parent c44043188c
commit 753596f92b

View File

@@ -270,7 +270,7 @@ void FancyTabBar::paintTab(QPainter *painter, int tabIndex) const
boldFont.setPointSizeF(Utils::StyleHelper::sidebarFontSize());
boldFont.setBold(true);
painter->setFont(boldFont);
painter->setPen(selected ? Utils::StyleHelper::panelTextColor() : QColor(30, 30, 30, 80));
painter->setPen(selected ? QColor(255, 255, 255, 160) : QColor(30, 30, 30, 80));
int textFlags = Qt::AlignCenter | Qt::AlignBottom | Qt::ElideRight | Qt::TextWordWrap;
if (enabled) {
painter->drawText(tabTextRect, textFlags, tabText);