From b5dade3f4a370bf32226cd2cb8b8411270bc319b Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Sun, 5 Nov 2017 01:00:03 +0100 Subject: Use the default icon colors defined by qml-asteroid --- main.qml | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.qml b/main.qml index d646c17..111fbd6 100644 --- a/main.qml +++ b/main.qml @@ -113,8 +113,6 @@ Application { IconButton { id: resetButton - iconColor: "white" - pressedIconColor: "lightgrey" iconName: "ios-refresh" visible: mainPage.state === "paused" -- cgit v1.2.3-54-g00ecf From e39258c608b8a7792e41c46777bf307914b03f91 Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Sun, 5 Nov 2017 10:43:59 +0100 Subject: Use the default IconButton placing defined by qml-asteroid --- main.qml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/main.qml b/main.qml index 111fbd6..68a568d 100644 --- a/main.qml +++ b/main.qml @@ -115,15 +115,7 @@ Application { id: resetButton iconName: "ios-refresh" visible: mainPage.state === "paused" - - hovered: false - - anchors { - horizontalCenter: parent.horizontalCenter - topMargin: Dims.iconButtonMargin - top: parent.top - } - + edge: Qt.TopEdge onClicked: elapsed.value = -1 } } -- cgit v1.2.3-54-g00ecf From b7dd6c0e03f96e0cc87aba9c38678a2c1b887fc8 Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Wed, 8 Nov 2017 21:22:53 +0100 Subject: Use Labels instead of Text to factorize some code between all apps --- main.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.qml b/main.qml index 68a568d..c1926e5 100644 --- a/main.qml +++ b/main.qml @@ -76,13 +76,12 @@ Application { State { name: "paused" } ] - Text { + Label { id: elapsedLabel textFormat: Text.RichText anchors.centerIn: parent text: toTimeString(elapsed.value) font.pixelSize: Dims.h(25) - color: "#FFFFFF" horizontalAlignment: Text.AlignHCenter SequentialAnimation { -- cgit v1.2.3-54-g00ecf