feat: make the animation speeds a little calmer

This commit is contained in:
Felitendo committed 2026-09-23 22:48:39 +02:00
1 parent bcbaaf74bc
commit 080c1cd0af
2 files changed
+7 -4

No files matched your search

+3 -1
View File
@@ -36,7 +36,9 @@ void UserConfig::load()
m_bubbleStyle = kv.value(QStringLiteral("BubbleStyle"), QStringLiteral("full")) == u"minimal" ? QStringLiteral("minimal") : QStringLiteral("full"); m_bubbleStyle = kv.value(QStringLiteral("BubbleStyle"), QStringLiteral("full")) == u"minimal" ? QStringLiteral("minimal") : QStringLiteral("full");
m_bubbleForPrompts = kv.boolean(QStringLiteral("BubbleForPrompts"), true); m_bubbleForPrompts = kv.boolean(QStringLiteral("BubbleForPrompts"), true);
const QString speed = kv.value(QStringLiteral("AnimationSpeed"), QStringLiteral("normal")); const QString speed = kv.value(QStringLiteral("AnimationSpeed"), QStringLiteral("normal"));
m_pace = speed == u"fast" ? 0.6 : speed == u"slow" ? 1.5 : 1.0; // The durations in the code are brisk, like on a phone. On a big screen
// they read better a little longer, so normal stretches them.
m_pace = speed == u"fast" ? 1.0 : speed == u"slow" ? 2.0 : 1.3;
if (QFileInfo::exists(path()) && !m_watcher.files().contains(path())) { if (QFileInfo::exists(path()) && !m_watcher.files().contains(path())) {
m_watcher.addPath(path()); m_watcher.addPath(path());
+4 -3
View File
@@ -55,8 +55,9 @@ public:
{ {
return m_bubbleForPrompts; return m_bubbleForPrompts;
} }
// How long the bubble's animations take, as a multiple of normal: the // How long the bubble's animations take, as a multiple of the durations
// animation speed setting (fast 0.6, normal 1, slow 1.5). // in the code: the animation speed setting (fast 1, normal 1.3,
// slow 2).
qreal pace() const qreal pace() const
{ {
return m_pace; return m_pace;
@@ -77,6 +78,6 @@ private:
bool m_bubble = true; bool m_bubble = true;
QString m_bubbleStyle = QStringLiteral("full"); QString m_bubbleStyle = QStringLiteral("full");
bool m_bubbleForPrompts = true; bool m_bubbleForPrompts = true;
qreal m_pace = 1; qreal m_pace = 1.3;
QString m_styleOverride; QString m_styleOverride;
}; };