parch-sddm/parch/Main.qml
2023-08-03 15:22:52 +03:30

55 lines
986 B
QML

import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Window 2.12
import "components"
Item {
id: root
height: Screen.height
width: Screen.width
Image {
id: background
anchors.fill: parent
height: parent.height
width: parent.width
fillMode: Image.PreserveAspectCrop
source: config.Background
asynchronous: false
cache: true
mipmap: true
clip: true
}
Item {
id: contentPanel
anchors {
fill: parent
topMargin: config.Padding
rightMargin: config.Padding
bottomMargin: config.Padding
leftMargin: config.Padding
}
DateTimePanel {
id: dateTimePanel
anchors {
top: parent.top
right: parent.right
}
}
LoginPanel {
id: loginPanel
anchors.fill: parent
}
}
}