From 02b6fe5787b02a1b892e0d663e6806b925458902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 22 Mar 2023 10:40:15 +0800 Subject: Simplify get started button --- Home/Default.ui.qml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/Home/Default.ui.qml b/Home/Default.ui.qml index 17e7fb4..00fba84 100644 --- a/Home/Default.ui.qml +++ b/Home/Default.ui.qml @@ -78,26 +78,18 @@ Flickable { Layout.bottomMargin: 25.6 horizontalPadding: 24 verticalPadding: 12.8 + text: qsTr("Get Started") + font: Bootstrap.btnFont contentItem: Text { - color: getStarted.down - ? "#ffffff" - : "#d6293e" - text: qsTr("Get Started") horizontalAlignment: Text .AlignHCenter verticalAlignment: Text .AlignVCenter - font { - family: Bootstrap - .btnFont - .family - weight: Bootstrap - .btnFont - .weight - pointSize: Bootstrap - .btnFont - .pointSize - } + text: getStarted.text + font: getStarted.font + color: getStarted.down + ? "#ffffff" + : "#d6293e" } background: Rectangle { radius: 8 @@ -106,8 +98,7 @@ Flickable { : Qt.rgba(.839, .16, .243, .1) border { - color: - getStarted.down + color: getStarted.down ? "#d6293e" : "transparent" width: 1 -- cgit v1.2.3