summaryrefslogtreecommitdiff
path: root/imports/Bootstrap/Bootstrap.qml
blob: 827b7a22a0af3b1da91fcaaee4224e6c4b4223c7 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
pragma Singleton
import QtQuick 2.15

QtObject {
	readonly property real badgeFontSize: 13.6

	readonly property real btnPaddingX: 16
	readonly property real btnPaddingY: 8
	readonly property font btnFont: Qt.font({
		family: haveRoboto ? "Roboto" : medium.name,
		weight: Font.Medium,
		pointSize: 15
	})
	readonly property color btnColor: "#ffffff"
	readonly property color btnBg: "transparent"
	readonly property real btnBorderWidth: 1
	readonly property color btnBorderColor: btnBg
	readonly property real btnBorderRadius: 5.2
	readonly property real btnLgFontSize: 16
	readonly property real btnLgBorderRadius: 8
	readonly property color btnPrimaryBg: "#066ac9"
	readonly property color btnPrimaryBorderColor: btnPrimaryBg
	readonly property color btnPrimaryActiveBg: "#0555a1"
	readonly property color btnPrimaryActiveBorderColor: "#055097"
	readonly property color btnPrimaryDisabledBg: "#a6066ac9"
	readonly property color btnPrimaryDisabledBorderColor
							: btnPrimaryDisabledBg
	readonly property color btnSuccessBg: "#0cbc87"
	readonly property color btnSuccessBorderColor: btnSuccessBg
	readonly property color btnSuccessActiveBg: "#0a966c"
	readonly property color btnSuccessActiveBorderColor: "#098d65"
	readonly property color btnSuccessDisabledBg: "#a60cbc87"
	readonly property color btnSuccessDisabledBorderColor
							: btnSuccessDisabledBg

	readonly property font bodyFont: Qt.font({
		family: haveRoboto ? "Roboto" : regular.name,
		weight: Font.Normal,
		pointSize: 15
	})

	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"
	}
}