summaryrefslogtreecommitdiff
path: root/Course/Detail/Classic/Content/Sidebar
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-30 12:30:36 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-30 12:30:36 +0800
commit73eb23967ac038bef0024079313a6eebcc915505 (patch)
tree6627726be3a5275babc7bf1f5c06563618f50813 /Course/Detail/Classic/Content/Sidebar
parent5df1f3bba135591e9a9afc5ba3f8bf30c561a313 (diff)
Simplify discount label
Diffstat (limited to 'Course/Detail/Classic/Content/Sidebar')
-rw-r--r--Course/Detail/Classic/Content/Sidebar/Video.ui.qml51
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"
}
}
}