-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFontStyle.qml
More file actions
52 lines (41 loc) · 1.67 KB
/
FontStyle.qml
File metadata and controls
52 lines (41 loc) · 1.67 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
44
45
46
47
48
49
50
51
52
pragma Singleton
import QtQuick 2.9
import QtQuick.Controls 2.5
QtObject {
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 getAwesomeBrand: fontAwesomeBrand
readonly property var getAwesomeRegular: fontAwesomeRegular
readonly property var getAwesomeLight: fontAwesomeLight
readonly property var getAwesomeSolid: fontAwesomeSolid
readonly property var getContentFont: contentFontMedium
readonly property var getContentFontBold: contentFontBold
readonly property var getContentFontMedium: contentFontMedium
readonly property var getContentFontLight: contentFontLight
readonly property var fontAwesomeBrand: FontLoader {
source: "qrc:/fonts/Font Awesome 5 Brands-Regular-400.otf"
}
readonly property var fontAwesomeRegular: FontLoader {
source: "qrc:/fonts/Font Awesome 5 Pro-Regular-400.otf"
}
readonly property var fontAwesomeLight: FontLoader {
source: "qrc:/fonts/Font Awesome 5 Pro-Light-300.otf"
}
readonly property var fontAwesomeSolid: FontLoader {
source: "qrc:/fonts/Font Awesome 5 Pro-Solid-900.otf"
}
readonly property var contentFontLight: FontLoader {
source: "qrc:/fonts/Nunito-Light.ttf"
}
readonly property var contentFontBold: FontLoader {
source: "qrc:/fonts/Nunito-Bold.ttf"
}
readonly property var contentFontMedium: FontLoader {
source: "qrc:/fonts/Nunito-Medium.ttf"
}
}