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