feat(quickshell): add minimal bar rendering on both monitors

- Variants + PanelWindow, one per Quickshell.screens entry
- ShellScreen-typed modelData, pragma ComponentBehavior: Bound
  required to reference id across delegate boundary
- screen: modelData is required for placement; modelData alone
  only supplies per-instance data, not physical binding
This commit is contained in:
Tsuzura 2026-07-30 21:57:02 -04:00
parent 7fcc879d0b
commit 9657904936
Signed by: Tsuzura
GPG key ID: AA6970149FDCA01C

View file

@ -0,0 +1,28 @@
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
ShellRoot {
Variants {
model: Quickshell.screens
PanelWindow {
id : panel
required property ShellScreen modelData
property string monitorName: modelData.name
screen: modelData
anchors {
right : true
top : true
left : true
}
implicitHeight: 32
color : "#2b1618"
Text {
anchors.centerIn: parent
text : "Hello from " + panel.monitorName
color : '#f2e4d8'
}
}
}
}