From 73eb23967ac038bef0024079313a6eebcc915505 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:30:36 +0800 Subject: Simplify discount label --- Course/Detail/Classic/Content/Sidebar/Video.ui.qml | 51 +++++++++++----------- 1 file changed, 25 insertions(+), 26 deletions(-) (limited to 'Course/Detail/Classic') diff --git a/Course/Detail/Classic/Content/Sidebar/Video.ui.qml b/Course/Detail/Classic/Content/Sidebar/Video.ui.qml index 17f2c0a..d9a78d1 100644 --- a/Course/Detail/Classic/Content/Sidebar/Video.ui.qml +++ b/Course/Detail/Classic/Content/Sidebar/Video.ui.qml @@ -78,32 +78,31 @@ ColumnLayout { font.strikeout: true } - Rectangle { - id - : discountLabel - implicitWidth - : discount.width - implicitHeight - : discount - .height - radius: 6 - color: "#fd7e14" - - Label { - id: discount - text: qsTr("60% off") - color: "white" - font { - family: Eduport.bodyFont.family - weight: Eduport.bodyFont.weight - pointSize: Eduport.bsBadgeFontSize - } - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - topPadding: 4.46 - leftPadding: 8.29 - rightPadding: 8.29 - bottomPadding: 4.46 + Label { + id: discount + text: qsTr("60% off") + color: "white" + font { + family: Eduport + .bodyFont + .family + weight: Eduport + .bodyFont + .weight + pointSize: Eduport + .bsBadgeFontSize + } + horizontalAlignment: Text + .AlignHCenter + verticalAlignment: Text + .AlignVCenter + topPadding: 4.46 + leftPadding: 8.29 + rightPadding: 8.29 + bottomPadding: 4.46 + background: Rectangle { + radius: 6 + color: "#fd7e14" } } } -- cgit v1.2.3