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 /core | |
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 'core')
-rw-r--r-- | core/metrics.cpp | 1 | ||||
-rw-r--r-- | core/qt-gui.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/core/metrics.cpp b/core/metrics.cpp index 23bf14253..9351bcb0d 100644 --- a/core/metrics.cpp +++ b/core/metrics.cpp @@ -24,7 +24,6 @@ IconMetrics::IconMetrics() : QFont defaultModelFont() { QFont font; -// font.setPointSizeF(font.pointSizeF() * 0.8); return font; } diff --git a/core/qt-gui.h b/core/qt-gui.h index dc0fb2348..8915b7ccd 100644 --- a/core/qt-gui.h +++ b/core/qt-gui.h @@ -10,7 +10,7 @@ void set_non_bt_addresses(); #if defined(SUBSURFACE_MOBILE) #include <QQuickWindow> -void run_mobile_ui(); +void run_mobile_ui(double initial_font_size); #else void run_ui(); #endif |