Skip to content

Commit 64b4593

Browse files
committed
Change the animation duration to 3 seconds by default. Every second feels quite distracting
1 parent 79234e9 commit 64b4593

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Opacity=50
119119
DarkMode=true
120120
AnimateNames=true
121121
AnimationColor=#ff0000
122-
AnimationDuration=1000
122+
AnimationDuration=3000
123123
Font=
124124
AllWorkspaces=false
125125
TreeThreshold=50
@@ -129,7 +129,7 @@ ProcessThreshold=50
129129
`RefreshInterval`, `AlertDuration`, and `AnimationDuration` are expressed in milliseconds.
130130

131131
Active process names pulse together between the theme text color and `AnimationColor`.
132-
`AnimationDuration` is the time for each direction (100–999000 ms); the default full cycle is two seconds.
132+
`AnimationDuration` is the time for each direction (100–999000 ms); the default full cycle is six seconds.
133133
Updates use one fixed 100 ms timer, which stops when no displayed process is active or `AnimateNames` is disabled.
134134
Recovered processes return to their normal text color during the alert hold duration.
135135

‎src/configuration.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Configuration::Configuration(QObject *parent)
1111
}
1212

1313
void Configuration::load() {
14-
m_hasWindowPosition = false;
14+
m_hasWindowPosition = false;
1515
m_settings.beginGroup(QStringLiteral("Settings"));
1616

1717
m_opacityPercent = qBound(10, m_settings.value(QStringLiteral("Opacity"), 50).toInt(), 100);
@@ -21,7 +21,7 @@ void Configuration::load() {
2121
if (!m_animationColor.isValid())
2222
m_animationColor = QColor(QStringLiteral("#ff0000"));
2323
m_animationColor.setAlpha(255);
24-
m_animationDuration = qBound(100, m_settings.value(QStringLiteral("AnimationDuration"), 1000).toInt(), 999000);
24+
m_animationDuration = qBound(100, m_settings.value(QStringLiteral("AnimationDuration"), 3000).toInt(), 999000);
2525
m_allWorkspaces = m_settings.value(QStringLiteral("AllWorkspaces"), false).toBool();
2626
m_refreshInterval = qMax(250, m_settings.value(QStringLiteral("RefreshInterval"), 5000).toInt());
2727
m_alertDuration = qMax(0, m_settings.value(QStringLiteral("AlertDuration"), 3000).toInt());

‎src/configuration.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public slots:
6868
int m_alertDuration = 3000;
6969
bool m_animateNames = true;
7070
QColor m_animationColor = QColor(QStringLiteral("#ff0000"));
71-
int m_animationDuration = 1000;
71+
int m_animationDuration = 3000;
7272
double m_treeThresholdPercent = 50.0;
7373
double m_processThresholdPercent = 50.0;
7474
bool m_deferSaves = false;

0 commit comments

Comments
 (0)