feat: input mgr
This commit is contained in:
@@ -1,19 +1,42 @@
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import QtQuick
|
||||
|
||||
PanelWindow {
|
||||
WlrLayershell.layer: WlrLayer.Top
|
||||
WlrLayershell.focusable: true
|
||||
WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
|
||||
WlrLayershell.namespace: "deltarune-quickshell"
|
||||
Item {
|
||||
id: windowFrame
|
||||
property color backgroundColor: "#000000"
|
||||
property int borderSize: 52
|
||||
width: 640
|
||||
height: 360
|
||||
clip: true
|
||||
|
||||
visible: true
|
||||
exclusionMode: ExclusionMode.Ignore
|
||||
aboveWindows: true
|
||||
focusable: true
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: windowFrame.borderSize
|
||||
color: windowFrame.backgroundColor
|
||||
}
|
||||
|
||||
implicitWidth: 1217
|
||||
implicitHeight: 767
|
||||
color: "#000000"
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user