From 8978a24c87d73bde28086de6a0419b8419586f1f Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Mon, 31 Jul 2017 22:26:05 +0100 Subject: Normalize dimensions with Dims.* --- main.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'main.qml') diff --git a/main.qml b/main.qml index 92fdf3f..ee531ff 100644 --- a/main.qml +++ b/main.qml @@ -18,7 +18,7 @@ * along with this program. If not, see . */ -import QtQuick 2.5 +import QtQuick 2.9 import org.asteroid.controls 1.0 import org.nemomobile.configuration 1.0 @@ -81,7 +81,7 @@ Application { textFormat: Text.RichText anchors.centerIn: parent text: toTimeString(elapsed.value) - font.pixelSize: parent.height*0.25 + font.pixelSize: Dims.h(25) color: "#FFFFFF" horizontalAlignment: Text.AlignHCenter @@ -97,7 +97,6 @@ Application { MouseArea { anchors.fill: parent onClicked: { - console.log("from:" + mainPage.state + " " + elapsed.value + " " + running.value + " " + previousTime.value) switch(mainPage.state) { case "zero": case "paused": @@ -109,7 +108,6 @@ Application { running.value = false break; } - console.log("from:" + mainPage.state + " " + elapsed.value + " " + running.value + " " + previousTime.value) } } @@ -124,7 +122,7 @@ Application { anchors { horizontalCenter: parent.horizontalCenter - topMargin: Units.dp(8) + topMargin: Units.iconButtonMargin top: parent.top } -- cgit v1.2.3-54-g00ecf From 31cf9437cb57f9b6235246fb411fd83076815731 Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Wed, 16 Aug 2017 22:10:42 +0100 Subject: Fix iconButton margin --- main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.qml') diff --git a/main.qml b/main.qml index ee531ff..d646c17 100644 --- a/main.qml +++ b/main.qml @@ -122,7 +122,7 @@ Application { anchors { horizontalCenter: parent.horizontalCenter - topMargin: Units.iconButtonMargin + topMargin: Dims.iconButtonMargin top: parent.top } -- cgit v1.2.3-54-g00ecf