nysh/src/shell.qml
2024-11-17 17:52:05 +01:00

43 lines
926 B
QML

//@ pragma UseQApplication
import Quickshell
import QtQuick
ShellRoot {
Scope {
Variants {
model: Quickshell.screens
delegate: Nysh {
required property var modelData
screen: modelData
}
}
}
LazyLoader {
id: loader
Component.onCompleted: {
Quickshell.reloadCompleted.connect(() => loader.active = false);
Quickshell.reloadFailed.connect(e => {
loader.active = true;
loader.message = e;
});
}
property string message: ""
PanelWindow {
anchors {
top: true
left: true
right: true
}
Text {
anchors.centerIn: parent
anchors.fill: parent
text: loader.message
}
}
}
}