From a7f9a2bec25137e2609ca0d5bdc9377e0e0e8dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 27 Mar 2023 18:45:08 +0800 Subject: fw-light implementation --- Eduport.qrc | 1 + Home/Default/Card.ui.qml | 18 ++---------------- Label/FwLight.ui.qml | 11 +++++++++++ 3 files changed, 14 insertions(+), 16 deletions(-) create mode 100644 Label/FwLight.ui.qml diff --git a/Eduport.qrc b/Eduport.qrc index 7d71fad..d38e19d 100644 --- a/Eduport.qrc +++ b/Eduport.qrc @@ -6,6 +6,7 @@ imports/Eduport/Eduport.qml imports/Eduport/qmldir Label/Body.ui.qml + Label/FwLight.ui.qml Label/H6.ui.qml Label/H5.ui.qml Label/H4.ui.qml 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 + } +} -- cgit v1.2.3