Files
DeltaruneQuickshell/Shell/Window/Window.qml
2026-01-24 14:35:16 +02:00

43 lines
894 B
QML

import QtQuick
Item {
id: windowFrame
property color backgroundColor: "#000000"
property int borderSize: 52
width: 640
height: 360
clip: true
Rectangle {
anchors.fill: parent
anchors.margins: windowFrame.borderSize
color: windowFrame.backgroundColor
}
BorderImage {
anchors.fill: parent
anchors.margins: 16 + 4
anchors.centerIn: parent
source: "./border.png"
width: 108
height: 108
border {
left: windowFrame.borderSize
top: windowFrame.borderSize
right: windowFrame.borderSize
bottom: windowFrame.borderSize
}
}
Item {
id: contentSlot
anchors {
fill: parent
margins: windowFrame.borderSize
}
}
default property alias windowContent: contentSlot.data
}