Skip to content

Commit 57078cd

Browse files
committed
all: update usage of Variants to match new api
See quickshell/48156a55b30c68cade2d28588e8f04f9080e54d1.
1 parent 9838d79 commit 57078cd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

activate_linux/shell.qml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ import Quickshell.Wayland
66
ShellRoot {
77
Variants {
88
// Create the panel once on each monitor.
9-
variants: Quickshell.screens.map(screen => ({ screen }))
9+
model: Quickshell.screens
1010

1111
PanelWindow {
1212
id: w
1313

14+
property var modelData
15+
screen: modelData
16+
1417
anchors {
1518
right: true
1619
bottom: true

wlogout/WLogout.qml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ Variants {
1111
property color buttonHoverColor: "#3700b3"
1212
default property list<LogoutButton> buttons
1313

14-
variants: Quickshell.screens.map(screen => ({ screen }))
14+
model: Quickshell.screens
1515
PanelWindow {
1616
id: w
1717

18+
property var modelData
19+
screen: modelData
20+
1821
exclusionMode: ExclusionMode.Ignore
1922
WlrLayershell.layer: WlrLayer.Overlay
2023
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive

0 commit comments

Comments
 (0)