-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathStyle.qml
More file actions
43 lines (35 loc) · 1.33 KB
/
Copy pathStyle.qml
File metadata and controls
43 lines (35 loc) · 1.33 KB
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
pragma Singleton
import QtQuick 2.15
QtObject {
readonly property color textColor: "#000000"
readonly property color blueMedium: "#2E78FF"
readonly property color blueLight: "#A8C3F4"
readonly property color red: "#B74134"
readonly property color redLight: "#ED4E3B"
readonly property color yellow: "#FFBD0A"
readonly property color green: "#25CB55"
readonly property color black: "#000000"
readonly property color black10: "#414141"
readonly property color black20: "#757575"
readonly property color black30: "#A2A3A5"
readonly property color black40: "#D0D2D0"
readonly property color black50: "#D0D1D2"
readonly property color black60: "#E0E0E0"
readonly property color black80: "#F0F0F0"
readonly property color white: "#FFFFFF"
readonly property string fontFamily: nunitoSans.name
readonly property FontLoader nunitoSans: FontLoader{
source: "qrc:/Nunito_Sans/NunitoSans-Regular.ttf"
}
property bool isDark: true
property bool mapAreaVisible: false
property string theme: isDark ? "dark" : "light"
function getImageBasedOnTheme() {
return `qrc:/icons/${theme}/background_image.png`;
}
function alphaColor(color, alpha) {
let actualColor = Qt.darker(color, 1)
actualColor.a = alpha
return actualColor
}
}