diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-21 17:33:20 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-21 17:33:20 +0800 |
commit | db0a295904cf54c03023a9f64b458cdcddf363c3 (patch) | |
tree | d6a9d3c7dd1b447f8aaf901f8d1d20b8de725aa1 /imports | |
parent | dffcf6d339faae463e5be3acfc237454aadcb650 (diff) |
Reorganise auth, primary button, and reuse
Diffstat (limited to 'imports')
-rw-r--r-- | imports/Bootstrap/Bootstrap.qml | 10 | ||||
-rw-r--r-- | imports/Eduport/Eduport.qml | 15 | ||||
-rw-r--r-- | imports/Eduport/qmldir | 2 |
3 files changed, 25 insertions, 2 deletions
diff --git a/imports/Bootstrap/Bootstrap.qml b/imports/Bootstrap/Bootstrap.qml index 321eedf..3afa941 100644 --- a/imports/Bootstrap/Bootstrap.qml +++ b/imports/Bootstrap/Bootstrap.qml @@ -1,5 +1,4 @@ pragma Singleton - import QtQuick 2.15 QtObject { @@ -16,9 +15,16 @@ QtObject { readonly property FontLoader medium: FontLoader { source: haveRoboto ? "" : "../../Roboto/Roboto-Medium.ttf" } + readonly property FontLoader regular: FontLoader { + source: haveRoboto ? "" : "../../Roboto/Roboto-Regular.ttf" + } + readonly property font bodyFont: Qt.font({ + family: haveRoboto ? "Roboto" : regular.name, + pointSize: 15 + }) readonly property font btnFont: Qt.font({ - pointSize: 15, family: haveRoboto ? "Roboto" : medium.name, + pointSize: 15, weight: Font.Medium }) } diff --git a/imports/Eduport/Eduport.qml b/imports/Eduport/Eduport.qml new file mode 100644 index 0000000..b966920 --- /dev/null +++ b/imports/Eduport/Eduport.qml @@ -0,0 +1,15 @@ +pragma Singleton +import QtQuick 2.15 + +QtObject { + readonly property real fontSizeLead: 18.75 + readonly property real fontSizeFormControl: 16 + readonly property real fontSizeFormText: 14 + + readonly property FontLoader heebo: FontLoader { + source: "../../Heebo/Heebo-Bold.ttf" + } + readonly property font hFont: Qt.font({ + family: heebo.name + }) +} diff --git a/imports/Eduport/qmldir b/imports/Eduport/qmldir new file mode 100644 index 0000000..4318031 --- /dev/null +++ b/imports/Eduport/qmldir @@ -0,0 +1,2 @@ +module Eduport +singleton Eduport 1.0 Eduport.qml |