summaryrefslogtreecommitdiff
path: root/imports/Eduport
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-22 11:43:55 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-22 11:43:55 +0800
commitdecd806617971b08256fe8d64b0401be11d79c28 (patch)
tree9ffe72922dc7a0823effed0404f3894fc40fe4ce /imports/Eduport
parentfbfd1ff47a46dd6a245d16933fa4e23765864240 (diff)
hx & body labels, & its use in course detail
Diffstat (limited to 'imports/Eduport')
-rw-r--r--imports/Eduport/Eduport.qml12
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