-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main.qml
56 lines (47 loc) · 1.26 KB
/
Main.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
53
54
55
56
import QtQuick 2.11
import QtQuick.Layouts 1.11
import QtQuick.Controls 2.4
import QtGraphicalEffects 1.0
import "Components"
Pane {
id: root
height: config.ResY || Screen.height
width: config.ResX || Screen.ScreenWidth
padding: 0
font.family: config.Font
Image {
id: backgroundImage
height: parent.height
width: parent.width
source: config.background || config.Background
fillMode: Image.PreserveAspectCrop
asynchronous: true
}
Rectangle {
id: overlay
height: config.ResY || Screen.height
width: config.ResX || Screen.ScreenWidth
color: config.OverlayColor
opacity: config.OverlayOpacity
}
Rectangle {
height: parent.height / 3
width: parent.width / 3
color: config.BackgroundColor
radius: 10
y: 30
anchors.horizontalCenter: parent.horizontalCenter
RowLayout {
id: rowlmao
height: parent.height
width: parent.width
spacing: 2
Clock {
Layout.preferredWidth: parent.width / 2.3
Layout.alignment: Qt.AlignBottom
Layout.bottomMargin: 25
}
LoginForm {}
}
}
}