From decd806617971b08256fe8d64b0401be11d79c28 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: Wed, 22 Mar 2023 11:43:55 +0800 Subject: hx & body labels, & its use in course detail --- imports/Eduport/Eduport.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'imports') diff --git a/imports/Eduport/Eduport.qml b/imports/Eduport/Eduport.qml index e3b36dd..14fe725 100644 --- a/imports/Eduport/Eduport.qml +++ b/imports/Eduport/Eduport.qml @@ -7,6 +7,14 @@ QtObject { readonly property real h6FontSize: 15 readonly property real formTextFontSize: 14 + readonly property bool haveRoboto: Qt.platform.os === "android" + || Qt.platform.os === "linux" + || Qt.platform.os === "osx" + || Qt.platform.os === "unix" + || Qt.platform.os === "windows" + readonly property FontLoader roboto: FontLoader { + source: haveRoboto ? "" : "../../Roboto/Roboto-Bold.ttf" + } readonly property FontLoader bold: FontLoader { source: "../../Heebo/Heebo-Bold.ttf" } @@ -16,6 +24,10 @@ QtObject { readonly property FontLoader regular: FontLoader { source: "../../Heebo/Heebo-Regular.ttf" } + readonly property font baseFont: Qt.font({ + family: haveRoboto ? "Roboto" : roboto.name, + weight: Font.Bold + }) readonly property font hFont: Qt.font({ family: bold.name, weight: Font.Bold -- cgit v1.2.3