aboutsummaryrefslogtreecommitdiff
path: root/src/options.cpp
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2024-02-10 05:23:34 -0600
committerGitHub <noreply@github.com>2024-02-10 12:23:34 +0100
commit27726c9ce1fd6ff1e581bade5911e3bf05bc59f2 (patch)
tree5e2c01731e8baaa9ee7705b2916944c10a8ae85e /src/options.cpp
parentff577255d3aa92ad104d674af9c789bf3be2d31f (diff)
Add integer-based theme scaling (#935)
Configurable over the options menu,
Diffstat (limited to 'src/options.cpp')
-rw-r--r--src/options.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/options.cpp b/src/options.cpp
index 4c32e963..d1822eec 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -87,6 +87,17 @@ QString Options::theme() const
void Options::setTheme(QString value) { config.setValue("theme", value); }
+int Options::themeScalingFactor() const
+{
+ int value = config.value("theme_scaling_factor", "1").toInt();
+ if (value <= 0) {
+ value = 1;
+ }
+ return value;
+}
+
+void Options::setThemeScalingFactor(int value) { config.setValue("theme_scaling_factor", value); }
+
int Options::blipRate() const { return config.value("blip_rate", 2).toInt(); }
void Options::setBlipRate(int value) { config.setValue("blip_rate", value); }
@@ -480,7 +491,7 @@ void Options::setServerSubTheme(QString value) { m_server_subtheme = value; }
bool Options::animatedThemeEnabled() const
{
- return config.value("animated_theme", true).toBool();
+ return config.value("animated_theme", false).toBool();
}
void Options::setAnimatedThemeEnabled(bool value)