feat: make the animation speeds a little calmer
This commit is contained in:
1 parent
bcbaaf74bc
commit
080c1cd0af
2 files changed
+7
-4
No files matched your search
@@ -36,7 +36,9 @@ void UserConfig::load()
|
||||
m_bubbleStyle = kv.value(QStringLiteral("BubbleStyle"), QStringLiteral("full")) == u"minimal" ? QStringLiteral("minimal") : QStringLiteral("full");
|
||||
m_bubbleForPrompts = kv.boolean(QStringLiteral("BubbleForPrompts"), true);
|
||||
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())) {
|
||||
m_watcher.addPath(path());
|
||||
|
||||
@@ -55,8 +55,9 @@ public:
|
||||
{
|
||||
return m_bubbleForPrompts;
|
||||
}
|
||||
// How long the bubble's animations take, as a multiple of normal: the
|
||||
// animation speed setting (fast 0.6, normal 1, slow 1.5).
|
||||
// How long the bubble's animations take, as a multiple of the durations
|
||||
// in the code: the animation speed setting (fast 1, normal 1.3,
|
||||
// slow 2).
|
||||
qreal pace() const
|
||||
{
|
||||
return m_pace;
|
||||
@@ -77,6 +78,6 @@ private:
|
||||
bool m_bubble = true;
|
||||
QString m_bubbleStyle = QStringLiteral("full");
|
||||
bool m_bubbleForPrompts = true;
|
||||
qreal m_pace = 1;
|
||||
qreal m_pace = 1.3;
|
||||
QString m_styleOverride;
|
||||
};
|
||||
Reference in new issue
Block a user