summaryrefslogtreecommitdiff
path: root/Home
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-22 11:49:27 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-22 11:49:27 +0800
commit405ef8dec8a5c1d85c76d02157d19607c55715a7 (patch)
treef5dc34b5f27fdc640e4cd31b8db661dc331e6299 /Home
parentdecd806617971b08256fe8d64b0401be11d79c28 (diff)
Default home use custom labels
Diffstat (limited to 'Home')
-rw-r--r--Home/Default.ui.qml42
1 files changed, 9 insertions, 33 deletions
diff --git a/Home/Default.ui.qml b/Home/Default.ui.qml
index 041d13a..185868a 100644
--- a/Home/Default.ui.qml
+++ b/Home/Default.ui.qml
@@ -5,6 +5,7 @@ import QtGraphicalEffects 1.15
import Bootstrap 5.3
import Eduport 1.4
import ".."
+import "../Label" as Lbl
import "Default" as Default
Flickable {
@@ -41,33 +42,21 @@ Flickable {
Layout.maximumWidth: body.width < 992
? body.width : body.width / 2
- Label {
+ Lbl.Hx {
text: bannerTitleText
color: "#24292d"
horizontalAlignment: Text.AlignHCenter
- wrapMode: Text.Wrap
Layout.fillWidth: true
- font {
- family: Eduport.hFont.family
- weight: Eduport.hFont.weight
- pointSize: 23.6
+ font.pointSize: 23.6
+ .027 * parent.width
- }
}
- Label {
+ Lbl.Body {
text: bannerContentText
color: "#747579"
horizontalAlignment: Text.AlignHCenter
- wrapMode: Text.Wrap
Layout.fillWidth: true
- font {
- family: Bootstrap.bodyFont
- .family
- weight: Bootstrap.bodyFont
- .weight
- pointSize: Eduport.leadFontSize
- }
+ font.pointSize: Eduport.leadFontSize
}
Button {
@@ -202,35 +191,22 @@ Flickable {
ColumnLayout {
Layout.bottomMargin: 25.6
- Label {
+ Lbl.Hx {
text: qsTr("Most Popular Courses")
color: "#24292d"
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.Wrap
Layout.fillWidth: true
Layout.bottomMargin: 8
- font {
- family: Eduport.hFont.family
- weight: Eduport.hFont.weight
- pointSize: 22.5 + .01875
- * parent.width
- }
+ font.pointSize: 22.5
+ + .01875 * parent.width
}
- Label {
+ Lbl.Body {
text: qsTr("Choose from hundreds of courses from specialist organizations")
color: "#747579"
horizontalAlignment: Text.AlignHCenter
- wrapMode: Text.Wrap
Layout.fillWidth: true
- font {
- family: Bootstrap.bodyFont
- .family
- weight: Bootstrap.bodyFont
- .weight
- pointSize: Bootstrap.bodyFont
- .pointSize
- }
}
}