summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-14 17:08:13 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-19 12:35:29 -0800
commit323e97c60370f06bb30e57580c8c4fce39df95f7 (patch)
tree577e0aa0d87e5c7012c57c7829587f5f9aeb8b31 /core
parent14721175416772d23c9757e74b78ec8be448aac7 (diff)
downloadsubsurface-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.cpp1
-rw-r--r--core/qt-gui.h2
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