diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2024-02-10 05:23:34 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-10 12:23:34 +0100 |
| commit | 27726c9ce1fd6ff1e581bade5911e3bf05bc59f2 (patch) | |
| tree | 5e2c01731e8baaa9ee7705b2916944c10a8ae85e /src/options.cpp | |
| parent | ff577255d3aa92ad104d674af9c789bf3be2d31f (diff) | |
Add integer-based theme scaling (#935)
Configurable over the options menu,
Diffstat (limited to 'src/options.cpp')
| -rw-r--r-- | src/options.cpp | 13 |
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) |
