summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"
}
}
}