From 684ad4e18dd4e0e9567a63a95694e9103a6454c8 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: Thu, 23 Mar 2023 12:52:14 +0800 Subject: Success button and its reuse --- Course/Detail/Classic/Content/Sidebar.ui.qml | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'Course/Detail/Classic') diff --git a/Course/Detail/Classic/Content/Sidebar.ui.qml b/Course/Detail/Classic/Content/Sidebar.ui.qml index af994db..01ab830 100644 --- a/Course/Detail/Classic/Content/Sidebar.ui.qml +++ b/Course/Detail/Classic/Content/Sidebar.ui.qml @@ -5,6 +5,7 @@ import QtGraphicalEffects 1.15 import QtMultimedia 5.15 import Bootstrap 5.3 import "../../../../Label" as Lbl +import "../../../../Button" as Btn ColumnLayout { property alias image: image @@ -190,32 +191,9 @@ ColumnLayout { } } - Button { + Btn.Success { id: buy - horizontalPadding: 16 - verticalPadding: 8 text: qsTr("Buy course") - font: Bootstrap.btnFont - contentItem: Text { - horizontalAlignment - : Text - .AlignHCenter - text: buy.text - font: buy.font - color: "#ffffff" - } - background: Rectangle { - radius: 5.2 - color: buy.down - ? "#0aa073" - : "#0cbc87" - border { - color: buy.down - ? "#0a966c" - : "#0cbc87" - width: 1 - } - } } } } -- cgit v1.2.3