diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-21 20:28:44 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-21 20:28:44 +0800 |
commit | 6d75ac98eb09c3b9207410e8590bafa86ddd3da3 (patch) | |
tree | 5e0368e749e1824c98683fc5641a4748263219b2 | |
parent | 57d9a9c94a3da873adef2b1ff1ff0e9e14efb74c (diff) |
Set Eduport font weights & fix banner title font size
-rw-r--r-- | Home/Default.ui.qml | 4 | ||||
-rw-r--r-- | 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 }) } |