Added circle paint instead of blobs when animations are disabled.
This commit is contained in:
parent
e2210274de
commit
1b2869d9c9
1 changed files with 8 additions and 0 deletions
|
|
@ -167,6 +167,14 @@ void BlobsWidget::init() {
|
||||||
Painter p(this);
|
Painter p(this);
|
||||||
PainterHighQualityEnabler hq(p);
|
PainterHighQualityEnabler hq(p);
|
||||||
|
|
||||||
|
if (anim::Disabled()) {
|
||||||
|
p.translate(_center, _center);
|
||||||
|
p.setPen(Qt::NoPen);
|
||||||
|
p.setBrush(_blobBrush);
|
||||||
|
p.drawEllipse(QPointF(), kMainMinRadius, kMainMinRadius);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Glow.
|
// Glow.
|
||||||
const auto s = kGlowMinScale
|
const auto s = kGlowMinScale
|
||||||
+ (1. - kGlowMinScale) * _blobs.currentLevel();
|
+ (1. - kGlowMinScale) * _blobs.currentLevel();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue