From 6d75ac98eb09c3b9207410e8590bafa86ddd3da3 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: Tue, 21 Mar 2023 20:28:44 +0800 Subject: Set Eduport font weights & fix banner title font size --- Home/Default.ui.qml | 4 +++- imports/Eduport/Eduport.qml | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Home/Default.ui.qml b/Home/Default.ui.qml index 9353c6b..34ab45f 100644 --- a/Home/Default.ui.qml +++ b/Home/Default.ui.qml @@ -49,7 +49,9 @@ Flickable { Layout.fillWidth: true font { family: Eduport.hFont.family - pointSize: 23.6 + .0432 * width + weight: Eduport.hFont.weight + pointSize: 23.6 + + .027 * parent.width } } diff --git a/imports/Eduport/Eduport.qml b/imports/Eduport/Eduport.qml index e2dbed3..ea01fa2 100644 --- a/imports/Eduport/Eduport.qml +++ b/imports/Eduport/Eduport.qml @@ -14,9 +14,11 @@ QtObject { source: "../../Heebo/Heebo-Medium.ttf" } readonly property font hFont: Qt.font({ - family: bold.name + family: bold.name, + weight: Font.Bold }) readonly property font normalFont: Qt.font({ - family: medium.name + family: medium.name, + weight: Font.Medium }) } -- cgit v1.2.3