From 48098af9d517c755e4e315b20963cf34fcb92bbe 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: Tue, 14 Feb 2023 20:50:02 +0800 Subject: Get Started button --- HomeDefault.ui.qml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/HomeDefault.ui.qml b/HomeDefault.ui.qml index 018c0a9..3f2777b 100644 --- a/HomeDefault.ui.qml +++ b/HomeDefault.ui.qml @@ -6,6 +6,7 @@ Flickable { property alias header: header property alias counter: counter property alias popular: popular + property alias getStarted: getStarted property bool doesntEmbed: Qt.platform.os === "android" || Qt.platform.os === "linux" || Qt.platform.os === "osx" @@ -82,6 +83,43 @@ Flickable { pixelSize: 19 } } + + Button { + id: getStarted + Layout.alignment: Qt.AlignHCenter + Layout.leftMargin: 24 + Layout.rightMargin: 24 + Layout.bottomMargin: 25.6 + horizontalPadding: 24 + verticalPadding: 12.8 + contentItem: Text { + color: getStarted.down + ? "#ffffff" + : "#d6293e" + text: qsTr("Get Started") + horizontalAlignment: Text + .AlignHCenter + verticalAlignment: Text + .AlignVCenter + font { + family: doesntEmbed + ? "Roboto" + : roboto.name + pixelSize: 16 + weight: Font.Medium + } + } + background: Rectangle { + radius: 8 + color: getStarted.down + ? "#d6293e" + : Qt.rgba(.839, .16, .243, .1) + border { + color: getStarted.down ? "#d6293e" : "transparent" + width: 1 + } + } + } } ColumnLayout { -- cgit v1.2.3