From efd20960ce3003d461d9c1d95912a2aad6abf51f 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, 30 Mar 2023 12:28:26 +0800 Subject: Outline primary button & its use --- Course/Detail/Classic/Content/Sidebar/Video.ui.qml | 26 ++-------------------- 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'Course') diff --git a/Course/Detail/Classic/Content/Sidebar/Video.ui.qml b/Course/Detail/Classic/Content/Sidebar/Video.ui.qml index b0b4974..8b261a8 100644 --- a/Course/Detail/Classic/Content/Sidebar/Video.ui.qml +++ b/Course/Detail/Classic/Content/Sidebar/Video.ui.qml @@ -6,6 +6,7 @@ import QtMultimedia 5.15 import Eduport 1.4 import "../../../../../Label" as Lbl import "../../../../../Button" as Btn +import "../../../../../Button/Outline" as BtnOutline ColumnLayout { property alias image: image @@ -126,32 +127,9 @@ ColumnLayout { Layout.fillWidth: true spacing: 16 - Button { + BtnOutline.Primary { id: trial - horizontalPadding: 16 - verticalPadding: 8 text: qsTr("Free trial") - font: Eduport.bsBtnFont - contentItem: Text { - horizontalAlignment - : Text - .AlignHCenter - text: trial.text - font: trial.font - color: trial.down - ? "#ffffff" - : "#066ac9" - } - background: Rectangle { - radius: 5.2 - color: trial.down - ? "#066ac9" - : "#ffffff" - border { - color: "#066ac9" - width: 1 - } - } } Btn.Success { -- cgit v1.2.3