From 530f0fc2da14bff5a4db0427dcb405d210994d2a Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Mon, 26 Jan 2009 18:42:25 +0100 Subject: [PATCH] Fixes: Reduced hover glow Details: I think the animations are a bit too much at the moment. It looks a bit more refined when they are subtle... --- src/plugins/coreplugin/fancytabwidget.cpp | 2 +- src/plugins/coreplugin/manhattanstyle.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/coreplugin/fancytabwidget.cpp b/src/plugins/coreplugin/fancytabwidget.cpp index 1302dc71d67..f5b646ba6be 100644 --- a/src/plugins/coreplugin/fancytabwidget.cpp +++ b/src/plugins/coreplugin/fancytabwidget.cpp @@ -158,7 +158,7 @@ void FancyTabBar::paintTab(QPainter *painter, int tabIndex) const QColor hoverColor; if (hover) { - hoverColor = QColor(255, 255, 255, m_hoverControl.currentFrame()*2); + hoverColor = QColor(255, 255, 255, m_hoverControl.currentFrame()); } QColor light = QColor(255, 255, 255, 40); diff --git a/src/plugins/coreplugin/manhattanstyle.cpp b/src/plugins/coreplugin/manhattanstyle.cpp index 4227dec213b..47e13dec297 100644 --- a/src/plugins/coreplugin/manhattanstyle.cpp +++ b/src/plugins/coreplugin/manhattanstyle.cpp @@ -495,10 +495,10 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption if (pressed) { QColor shade(0, 0, 0, 50); if (option->state & State_Sunken) - shade = QColor(0, 0, 0, 70); + shade = QColor(0, 0, 0, 50); #ifndef Q_WS_MAC else if (option->state & State_MouseOver) - shade = QColor(255, 255, 255, 40); + shade = QColor(255, 255, 255, 10); #endif else if (option->state & State_On) shade = QColor(0, 0, 0, 50); @@ -514,7 +514,7 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption } #ifndef Q_WS_MAC else if (option->state & State_MouseOver) { - QColor lighter(255, 255, 255, 100); + QColor lighter(255, 255, 255, 35); painter->fillRect(rect, lighter); painter->drawLine(rect.topRight(), rect.bottomRight()); }