aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/main.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-14 19:30:47 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-30 07:52:14 +0200
commit2cc215d3f26788974b1d5c552cb3750ad6bf8d85 (patch)
tree7e49e4fa1cfaa9db7c609f4131f9b5f2d1816ea6 /mobile-widgets/qml/main.qml
parenta3e3a30b701370ec8e35f5cb3d1072642a2f44b1 (diff)
downloadsubsurface-2cc215d3f26788974b1d5c552cb3750ad6bf8d85.tar.gz
mobile-widgets: move font property to themeInterface
Move setting of font properties used throughout to themeInterface. Add new settings "currentScale". The properties are kept in main (subsurfaceTheme) in order not to do a big search/replace. Update settings to use currectScale and signal changes in themeinterface. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r--mobile-widgets/qml/main.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index ab9248ddf..be6cfaff2 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -596,10 +596,10 @@ if you have network connectivity and want to sync your data to cloud storage."),
QtObject {
id: subsurfaceTheme
- property double regularPointSize: fontMetrics.font.pointSize
- property double titlePointSize: regularPointSize * 1.5
- property double headingPointSize: regularPointSize * 1.2
- property double smallPointSize: regularPointSize * 0.8
+ property double regularPointSize: ThemeNew.regularPointSize
+ property double titlePointSize: ThemeNew.titlePointSize
+ property double headingPointSize: ThemeNew.headingPointSize
+ property double smallPointSize: ThemeNew.smallPointSize
// colors currently in use
property color darkerPrimaryColor: ThemeNew.darkerPrimaryColor