From a3e3a30b701370ec8e35f5cb3d1072642a2f44b1 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 14 Jan 2020 13:10:07 +0100 Subject: mobile-widgets: move basePointSize to themeinterface Check defaultfont and calculate basepointsize in themeinterface instead of in QML. Signed-off-by: jan Iversen Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/Settings.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mobile-widgets/qml/Settings.qml') diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 1310cdf6d..f4bc95db3 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -318,7 +318,7 @@ Kirigami.ScrollablePage { enabled: subsurfaceTheme.currentScale !== 0.85 onClicked: { PrefDisplay.mobile_scale = 0.85 - fontMetrics.font.pointSize = subsurfaceTheme.basePointSize * PrefDisplay.mobile_scale; + fontMetrics.font.pointSize = themeNew.basePointSize * PrefDisplay.mobile_scale; } } SsrfButton { @@ -326,7 +326,7 @@ Kirigami.ScrollablePage { enabled: subsurfaceTheme.currentScale !== 1.0 onClicked: { PrefDisplay.mobile_scale = 1.0 - fontMetrics.font.pointSize = subsurfaceTheme.basePointSize * PrefDisplay.mobile_scale; + fontMetrics.font.pointSize = themeNew.basePointSize * PrefDisplay.mobile_scale; } } SsrfButton { @@ -334,7 +334,7 @@ Kirigami.ScrollablePage { enabled: subsurfaceTheme.currentScale !== 1.15 onClicked: { PrefDisplay.mobile_scale = 1.15 - fontMetrics.font.pointSize = subsurfaceTheme.basePointSize * PrefDisplay.mobile_scale; + fontMetrics.font.pointSize = themeNew.basePointSize * PrefDisplay.mobile_scale; } } } -- cgit v1.2.3-70-g09d2