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 { ShellRoot {
Variants { Variants {
// Create the panel once on each monitor. // Create the panel once on each monitor.
variants: Quickshell.screens.map(screen => ({ screen })) model: Quickshell.screens
PanelWindow { PanelWindow {
id: w id: w
property var modelData
screen: modelData
anchors { anchors {
right: true right: true
bottom: true bottom: true

View file

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