-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.qml
More file actions
executable file
·32 lines (24 loc) · 756 Bytes
/
main.qml
File metadata and controls
executable file
·32 lines (24 loc) · 756 Bytes
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
import QtQuick 2.2
import QtQuick.Window 2.1
Loader {
id: root
property int parentHeight
property int parentWidth
anchors.centerIn: parent
parentHeight: parent == null ? 0 : parent.height
parentWidth: parent == null ? 0 : parent.width
height: screenRotation % 180 == 0 ? parentHeight : parentWidth
width: screenRotation % 180 == 0 ? parentWidth : parentHeight
source: 'ci_screen/screens/status_screen.qml'
transform: Rotation {
angle: screenRotation
origin.x: root.width / 2
origin.y: root.height / 2
}
FontLoader {
source: 'ci_screen/assets/open-sans/OpenSans-Regular.ttf'
}
FontLoader {
source: 'ci_screen/assets/open-sans/OpenSans-Bold.ttf'
}
}