1
0
Fork 0

all: update usage of Variants to match new api

See quickshell/48156a55b30c68cade2d28588e8f04f9080e54d1.
This commit is contained in:
outfoxxed 2024-03-14 05:00:53 -07:00
parent 9838d79724
commit 57078cd364
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 8 additions and 2 deletions

View file

@ -6,11 +6,14 @@ import Quickshell.Wayland
ShellRoot {
Variants {
// Create the panel once on each monitor.
variants: Quickshell.screens.map(screen => ({ screen }))
model: Quickshell.screens
PanelWindow {
id: w
property var modelData
screen: modelData
anchors {
right: true
bottom: true

View file

@ -11,10 +11,13 @@ Variants {
property color buttonHoverColor: "#3700b3"
default property list<LogoutButton> buttons
variants: Quickshell.screens.map(screen => ({ screen }))
model: Quickshell.screens
PanelWindow {
id: w
property var modelData
screen: modelData
exclusionMode: ExclusionMode.Ignore
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive