-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTheme.qml
52 lines (39 loc) · 1.64 KB
/
Theme.qml
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
// Copyright (C) 2024 Adesh Singh
pragma Singleton
import QtQuick
QtObject {
id:theme
property color background: gTheme.isDark ? DarkTheme.background : LightTheme.background
property color text: gTheme.isDark ? DarkTheme.text : LightTheme.text
//font style and font family name
readonly property int h1 : 32
readonly property int h2 : 24
readonly property double h3 : 18.72
readonly property int h4 : 16
readonly property double h5 : 13.28
readonly property double h6 : 10.72
readonly property int content : 14
readonly property var getAwesomeRegular: fontAwesomeRegular
readonly property var getAwesomeSolid: fontAwesomeSolid
readonly property var getContentFontBold: contentFontBold
readonly property var getContentFontRegular: contentFontRegular
readonly property var getContentFontLight: contentFontLight
readonly property var fontAwesomeRegular: FontLoader {
source: "qrc:/resources/fonts/Font Awesome 5 Free-Regular-400.otf"
}
readonly property var fontAwesomeSolid: FontLoader {
source: "qrc:/resources/fonts/Font Awesome 5 Free-Solid-900.otf"
}
readonly property var contentFontLight: FontLoader {
source: "qrc:/resources/fonts/Nunito-Light.ttf"
}
readonly property var contentFontBold: FontLoader {
source: "qrc:/resources/fonts/Nunito-Bold.ttf"
}
readonly property var contentFontRegular: FontLoader {
source: "qrc:/resources/fonts/Nunito-Regular.ttf"
}
property var basic: {
whatsapp: "image:///whatsapp.svg"
}
}