diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-01-26 18:42:25 +0100 |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-01-26 18:42:25 +0100 |
commit | 530f0fc2da14bff5a4db0427dcb405d210994d2a (patch) | |
tree | e87793828c16c5e1e231c046e224ff7682f3d89f /src/plugins/coreplugin | |
parent | fc5c249e55c836768064351c549174cf60d07ceb (diff) | |
download | qt-creator-530f0fc2da14bff5a4db0427dcb405d210994d2a.tar.gz |
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...
Diffstat (limited to 'src/plugins/coreplugin')
-rw-r--r-- | src/plugins/coreplugin/fancytabwidget.cpp | 2 | ||||
-rw-r--r-- | 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 1302dc71d6..f5b646ba6b 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 4227dec213..47e13dec29 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()); } |