From 753596f92beb91c83c8c80a2a1199dc36de128dd Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig <jbache@trolltech.com> Date: Wed, 24 Feb 2010 12:06:06 +0100 Subject: [PATCH] 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. --- src/plugins/coreplugin/fancytabwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/fancytabwidget.cpp b/src/plugins/coreplugin/fancytabwidget.cpp index e9545a35d72..20684085ee4 100644 --- a/src/plugins/coreplugin/fancytabwidget.cpp +++ b/src/plugins/coreplugin/fancytabwidget.cpp @@ -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); -- GitLab