diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-30 12:30:36 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-30 12:30:36 +0800 |
commit | 73eb23967ac038bef0024079313a6eebcc915505 (patch) | |
tree | 6627726be3a5275babc7bf1f5c06563618f50813 /Course/Detail | |
parent | 5df1f3bba135591e9a9afc5ba3f8bf30c561a313 (diff) |
Simplify discount label
Diffstat (limited to 'Course/Detail')
-rw-r--r-- | Course/Detail/Classic/Content/Sidebar/Video.ui.qml | 51 |
1 files changed, 25 insertions, 26 deletions
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" } } } |