From 6d3a5e6bd4e0c449eca65fa832752452cc2b92f5 Mon Sep 17 00:00:00 2001 From: Sebastian Kügler Date: Fri, 6 Nov 2015 21:53:26 +0000 Subject: Theme tweaks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - gridUnits is dynamic again, using FontMetrics now - Add a page to display some sizing-relevant details, so we can debug dpi problems a bit better on Android Signed-off-by: Sebastian Kügler Signed-off-by: Dirk Hohndel --- qt-mobile/theme/Units.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'qt-mobile/theme') diff --git a/qt-mobile/theme/Units.qml b/qt-mobile/theme/Units.qml index 9efec3157..1d0899fbc 100644 --- a/qt-mobile/theme/Units.qml +++ b/qt-mobile/theme/Units.qml @@ -31,7 +31,7 @@ QtObject { * Given the screen has an accurate DPI settings, it corresponds to a width of * the capital letter M */ - property int gridUnit: 20 + property int gridUnit: fontMetrics.height /** * units.iconSizes provides access to platform-dependent icon sizing @@ -95,8 +95,8 @@ QtObject { */ property int shortDuration: 150 -// property QtObject fontMetrics: FontMetrics { -// //id: textSpacer -// //text: "M" -// } + property QtObject fontMetrics: FontMetrics { + //id: textSpacer + //text: "M" + } } -- cgit v1.2.3-70-g09d2