aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/fancyactionbar.cpp
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2010-02-17 18:41:41 +0100
committerJens Bache-Wiig <jbache@trolltech.com>2010-02-22 14:36:45 +0100
commit7899a2733bec9763ef1444b370b37a959dbdf6cb (patch)
tree6c6b0b4a3859f31905aeda67211ec18177af2f4f /src/plugins/coreplugin/fancyactionbar.cpp
parent915923a17c3a81911524ec3cbbd27b62fe4eac82 (diff)
Animate sidebar tabs independently
Diffstat (limited to 'src/plugins/coreplugin/fancyactionbar.cpp')
-rw-r--r--src/plugins/coreplugin/fancyactionbar.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/coreplugin/fancyactionbar.cpp b/src/plugins/coreplugin/fancyactionbar.cpp
index 815075d725..c62e695d88 100644
--- a/src/plugins/coreplugin/fancyactionbar.cpp
+++ b/src/plugins/coreplugin/fancyactionbar.cpp
@@ -116,19 +116,19 @@ void FancyToolButton::paintEvent(QPaintEvent *event)
if (isDown() || isChecked()) {
painter.save();
- QColor whiteOverlay(Qt::black);
- whiteOverlay.setAlpha(30);
+ QColor color(Qt::black);
+ color.setAlpha(15);
QRect roundRect = rect().adjusted(5, 3, -5, -3);
painter.translate(0.5, 0.5);
painter.setRenderHint(QPainter::Antialiasing);
- painter.setPen(QColor(255, 255, 255, 40));
+ painter.setPen(QColor(255, 255, 255, 20));
static int rounding = 3;
painter.drawRoundedRect(roundRect.adjusted(-1, -1, 1, 1), rounding, rounding);
- painter.setPen(QColor(0, 0, 0, 40));
- painter.setBrush(QColor(0, 0, 0, 30));
+ painter.setPen(QColor(0, 0, 0, 20));
+ painter.setBrush(QColor(0, 0, 0, 15));
painter.drawRoundedRect(roundRect.adjusted(1, 1, 0, 0), rounding, rounding);
- whiteOverlay.setAlpha(150);
- painter.setPen(whiteOverlay);
+ color.setAlpha(75);
+ painter.setPen(color);
painter.setBrush(Qt::NoBrush);
painter.drawRoundedRect(roundRect, 3, 3);
painter.restore();