Commit 530f0fc2 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

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...
parent fc5c249e
......@@ -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);
......
......@@ -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());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment