summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-27 18:45:08 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-27 18:45:08 +0800
commita7f9a2bec25137e2609ca0d5bdc9377e0e0e8dd2 (patch)
tree4f71df2803bd832722391c0d2d1a5b4952659941
parent41bd740e4bd9fd4dee5dcc630407453d9455f839 (diff)
fw-light implementation
-rw-r--r--Eduport.qrc1
-rw-r--r--Home/Default/Card.ui.qml18
-rw-r--r--Label/FwLight.ui.qml11
3 files changed, 14 insertions, 16 deletions
diff --git a/Eduport.qrc b/Eduport.qrc
index 7d71fad..d38e19d 100644
--- a/Eduport.qrc
+++ b/Eduport.qrc
@@ -6,6 +6,7 @@
<file>imports/Eduport/Eduport.qml</file>
<file>imports/Eduport/qmldir</file>
<file>Label/Body.ui.qml</file>
+ <file>Label/FwLight.ui.qml</file>
<file>Label/H6.ui.qml</file>
<file>Label/H5.ui.qml</file>
<file>Label/H4.ui.qml</file>
diff --git a/Home/Default/Card.ui.qml b/Home/Default/Card.ui.qml
index 18fb75b..b80cf26 100644
--- a/Home/Default/Card.ui.qml
+++ b/Home/Default/Card.ui.qml
@@ -185,36 +185,22 @@ Item {
Item {
Layout.fillWidth: true
- Label {
+ Lbl.FwLight {
id: duration
text: "15h 30m"
anchors {
left: parent.left
verticalCenter: parent.verticalCenter
}
- font {
- family: Eduport.fwLightFont
- .family
- weight: Eduport.fwLightFont
- .weight
- pointSize: Eduport.h6FontSize
- }
}
- Label {
+ Lbl.FwLight {
id: lectures
text: "68 lectures"
anchors {
right: parent.right
verticalCenter: parent.verticalCenter
}
- font {
- family: Eduport.fwLightFont
- .family
- weight: Eduport.fwLightFont
- .weight
- pointSize: Eduport.h6FontSize
- }
}
}
}
diff --git a/Label/FwLight.ui.qml b/Label/FwLight.ui.qml
new file mode 100644
index 0000000..d88e30d
--- /dev/null
+++ b/Label/FwLight.ui.qml
@@ -0,0 +1,11 @@
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+import Eduport 1.4
+
+Label {
+ font {
+ family: Eduport.fwLightFont.family
+ weight: Eduport.fwLightFont.weight
+ pointSize: Eduport.h6FontSize
+ }
+}