summaryrefslogtreecommitdiff
path: root/imports/Bootstrap/Bootstrap.qml
blob: a7a2951214de5dfbd1d05ee2fe9bc5e702af81aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pragma Singleton
import QtQuick 2.15

QtObject {
	readonly property real badgeFontSize: 13.6

	readonly property color btnColor: "#ffffff"
	readonly property color btnBg: "#066ac9"
	readonly property color btnActiveBg: "#0555a1"
	readonly property color btnDisabledBg: "#a6066ac9"

	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 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,
		weight: Font.Normal,
		pointSize: 15
	})
	readonly property font btnFont: Qt.font({
		family: haveRoboto ? "Roboto" : medium.name,
		weight: Font.Medium,
		pointSize: 15
	})
}