summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-09-27 11:54:28 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-27 06:36:22 -0700
commit0ad7df985972bee42f925d2e2853587307e3ef7a (patch)
tree4284c0e69d226e4c036d79856a5d6f9f651da44a /mobile-widgets/qml/main.qml
parent890d4c3d649dd55817d4bb85d62ad433a61cebe4 (diff)
downloadsubsurface-0ad7df985972bee42f925d2e2853587307e3ef7a.tar.gz
mobile, QML UI: Settings page scalability
A relatively big change for such a simple page. Most relevant changes are: 1) Do not use Kirigami.Header anymore. It appears that this header has word wrapping on (and we cannot override that). This is annoying on this page, as headings seems randomly be split over 2 lines, even in cases where there is more than enhough room to display it on one line. And as the Kirigami.Header is just a trivial wrapper of a Text field, we can simple replace it. 2) A lot of the toplevel GridLayouts had width properties set. These are not needed (and confused my debugging code), so they are removed withput any visual change. As a general rule, do not try to set properties that are not needed. In general, it can only lead to binding loops or undefined behavior. 3) Add a font size to our Theme. The step from regular to title size was a little too big. 4) And, obviously, numerous font.pointSize lines are added to actually resize the font. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r--mobile-widgets/qml/main.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 743b4caa1..72d37134a 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -455,6 +455,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
property double regularPointSize: fontMetrics.font.pointSize
property double titlePointSize: regularPointSize * 1.5
+ property double headingPointSize: regularPointSize * 1.2
property double smallPointSize: regularPointSize * 0.8
// colors currently in use