From 323e97c60370f06bb30e57580c8c4fce39df95f7 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 14 Jan 2021 17:08:13 -0800 Subject: 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 --- core/metrics.cpp | 1 - core/qt-gui.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'core') 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 -void run_mobile_ui(); +void run_mobile_ui(double initial_font_size); #else void run_ui(); #endif -- cgit v1.2.3-70-g09d2