diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-01-14 17:08:13 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-19 12:35:29 -0800 |
commit | 323e97c60370f06bb30e57580c8c4fce39df95f7 (patch) | |
tree | 577e0aa0d87e5c7012c57c7829587f5f9aeb8b31 /mobile-widgets/themeinterface.h | |
parent | 14721175416772d23c9757e74b78ec8be448aac7 (diff) | |
download | subsurface-323e97c60370f06bb30e57580c8c4fce39df95f7.tar.gz |
mobile/UI: remember the system default font size
We need to do this before the preferences are loaded, or the system
default size is lost. Given that our other sizes are all relative to
this value, that would be a problem.
With this we can now ensure that we always have the right font size for
smaller, regular, and larger theme settings.
Also removes some obsolete commented out code.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/themeinterface.h')
-rw-r--r-- | mobile-widgets/themeinterface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/themeinterface.h b/mobile-widgets/themeinterface.h index e4e61144f..922d6531e 100644 --- a/mobile-widgets/themeinterface.h +++ b/mobile-widgets/themeinterface.h @@ -37,6 +37,7 @@ class ThemeInterface : public QObject { public: static ThemeInterface *instance(); double currentScale(); + void setInitialFontSize(double fontSize); public slots: void set_currentTheme(const QString &theme); |