summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-17 11:38:06 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-17 11:38:06 +0200
commit2fe0dbb38cc8b02e2c61a28270b9b320cc7564e1 (patch)
treee33651d42a28b43cc5031c08d3e9e5ed27699b0f /src/ui
parentAdd fancy snackbar animation (diff)
downloadnheko-2fe0dbb38cc8b02e2c61a28270b9b320cc7564e1.tar.xz
Fix CI & adjust snackbar animation
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/SnackBar.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/SnackBar.cc b/src/ui/SnackBar.cc

index 123d83e8..d548a128 100644 --- a/src/ui/SnackBar.cc +++ b/src/ui/SnackBar.cc
@@ -29,10 +29,10 @@ SnackBar::SnackBar(QWidget *parent) hideTimer_ = QSharedPointer<QTimer>(new QTimer); hideTimer_->setSingleShot(true); - auto offset_anim = tweeny::from(1.0f).to(0.0f).during(4000).via(tweeny::easing::elasticOut); + auto offset_anim = tweeny::from(1.0f).to(0.0f).during(100).via(tweeny::easing::cubicOut); connect(showTimer_.data(), &QTimer::timeout, this, [this, offset_anim]() mutable { if (offset_anim.progress() < 1.0f) { - offset_ = offset_anim.step(0.02f); + offset_ = offset_anim.step(0.07f); update(); } else { showTimer_->stop();