Instead of manually trying to find ancestor ConfigScope, set attached prop on ancestor and propagate via attached props
17 lines
370 B
QML
17 lines
370 B
QML
import Quickshell
|
|
import Quickshell.Wayland
|
|
import Caelestia.Config
|
|
|
|
// qmllint disable uncreatable-type
|
|
PanelWindow {
|
|
// qmllint enable uncreatable-type
|
|
id: root
|
|
|
|
required property string name
|
|
|
|
WlrLayershell.namespace: `caelestia-${name}`
|
|
color: "transparent"
|
|
|
|
contentItem.Config.screen: screen.name
|
|
contentItem.Tokens.screen: screen.name
|
|
}
|