diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-23 12:52:14 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-23 12:52:14 +0800 |
commit | 684ad4e18dd4e0e9567a63a95694e9103a6454c8 (patch) | |
tree | 758a9edb087d866192f6a256741b1fa597efa50d /Course/Detail/Classic/Content | |
parent | b3d2b1fc6251d2a75a45ef88477cbf6ed5aa9eb7 (diff) |
Success button and its reuse
Diffstat (limited to 'Course/Detail/Classic/Content')
-rw-r--r-- | Course/Detail/Classic/Content/Sidebar.ui.qml | 26 |
1 files changed, 2 insertions, 24 deletions
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 - } - } } } } |