blob: 3eb5a25542d5a7195ae540b95fa8322003c4596f (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
pragma Singleton
import QtQuick 2.15
QtObject {
enum Mode {
Light = 0,
Dark
}
property int mode: Eduport.Mode.Light
readonly property real leadFontSize: 18.75
readonly property real formControlFontSize: 16
readonly property real h6FontSize: 15
readonly property real formTextFontSize: 14
readonly property real navPillsBorderRadius: bsBtnBorderRadius
readonly property color navPillsLinkActiveColor: "#ffffff"
readonly property color navPillsLinkActiveBg: bsPrimary
readonly property font baseFont: Qt.font({
family: haveRoboto ? "Roboto" : robotoBold.name,
weight: Font.Bold
})
readonly property font bodyFont: Qt.font({
family: haveRoboto ? "Roboto" : robotoRegular.name,
weight: Font.Normal,
pointSize: 15
})
readonly property font hxFont: Qt.font({
family: heeboBold.name,
weight: Font.Bold,
pointSize: h6FontSize
})
readonly property font fwNormalFont: Qt.font({
family: heeboMedium.name,
weight: Font.Medium
})
readonly property font fwLightFont: Qt.font({
family: heeboRegular.name,
weight: Font.Normal
})
readonly property color bsPrimary: "#066ac9"
property color bsLight: mode == Eduport.Mode.Light
? "#f5f7f9" : "#2a2c31"
property color bsDark: mode == Eduport.Mode.Light
? "#24292d" : "#0f0f10"
readonly property real bsBadgeFontSize: 13.6
property color bsBodyBg: mode == Eduport.Mode.Light
? "#ffffff" : "#222529"
property real bsBorderRadius: 5.2
property real bsBoxShadowOffsetX: 0
property real bsBoxShadowOffsetY: 0
property int bsBoxShadowBlurRadius: 40
property color bsBoxShadowColor: "#261d3a53"
readonly property real bsBtnPaddingX: 16
readonly property real bsBtnPaddingY: 8
readonly property font bsBtnFont: Qt.font({
family: haveRoboto ? "Roboto" : robotoMedium.name,
weight: Font.Medium,
pointSize: 15
})
readonly property color bsBtnColor: "#747579"
readonly property color bsBtnBg: "transparent"
readonly property real bsBtnBorderWidth: 1
readonly property color bsBtnBorderColor: bsBtnBg
readonly property real bsBtnBorderRadius: 5.2
readonly property real bsBtnLgFontSize: 16
readonly property real bsBtnLgBorderRadius: 8
readonly property color bsBtnPrimaryBg: bsPrimary
readonly property color bsBtnPrimaryBorderColor: bsPrimary
readonly property color bsBtnPrimaryActiveBg: "#0555a1"
readonly property color bsBtnPrimaryActiveBorderColor: "#055097"
readonly property color bsBtnPrimaryDisabledBg: "#a6066ac9"
readonly property color bsBtnPrimaryDisabledBorderColor:
bsBtnPrimaryDisabledBg
readonly property color bsBtnSuccessBg: "#0cbc87"
readonly property color bsBtnSuccessBorderColor: bsBtnSuccessBg
readonly property color bsBtnSuccessActiveBg: "#0a966c"
readonly property color bsBtnSuccessActiveBorderColor: "#098d65"
readonly property color bsBtnSuccessDisabledBg: "#a60cbc87"
readonly property color bsBtnSuccessDisabledBorderColor:
bsBtnSuccessDisabledBg
property color bsGray800: mode == Eduport.Mode.Light
? "#24292d" : "#f7f5f5"
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 robotoBold: FontLoader {
source: haveRoboto ? "" : "../../Roboto/Roboto-Bold.ttf"
}
readonly property FontLoader robotoMedium: FontLoader {
source: haveRoboto ? "" : "../../Roboto/Roboto-Medium.ttf"
}
readonly property FontLoader robotoRegular: FontLoader {
source: haveRoboto ? "" : "../../Roboto/Roboto-Regular.ttf"
}
readonly property FontLoader heeboBold: FontLoader {
source: "../../Heebo/Heebo-Bold.ttf"
}
readonly property FontLoader heeboMedium: FontLoader {
source: "../../Heebo/Heebo-Medium.ttf"
}
readonly property FontLoader heeboRegular: FontLoader {
source: "../../Heebo/Heebo-Regular.ttf"
}
}
|