diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-22 11:43:55 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-22 11:43:55 +0800 |
commit | decd806617971b08256fe8d64b0401be11d79c28 (patch) | |
tree | 9ffe72922dc7a0823effed0404f3894fc40fe4ce /imports | |
parent | fbfd1ff47a46dd6a245d16933fa4e23765864240 (diff) |
hx & body labels, & its use in course detail
Diffstat (limited to 'imports')
-rw-r--r-- | imports/Eduport/Eduport.qml | 12 |
1 files changed, 12 insertions, 0 deletions
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 |