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:
parent
7fcc879d0b
commit
9657904936
1 changed files with 28 additions and 0 deletions
28
quickshell/.config/quickshell/shell.qml
Normal file
28
quickshell/.config/quickshell/shell.qml
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue