WallpaperOverview: remove unnecessary Variants and Item

This commit is contained in:
end-4
2025-08-18 18:25:23 +07:00
parent b01b52c8f8
commit fe23017a97
@@ -14,17 +14,11 @@ import Quickshell.Hyprland
Scope {
id: scope
Variants {
id: variants
model: Quickshell.screens
PanelWindow {
id: root
required property var modelData
readonly property HyprlandMonitor monitor: Hyprland.monitorFor(root.screen)
property bool monitorIsFocused: (Hyprland.focusedMonitor?.id == monitor?.id)
screen: modelData
visible: GlobalStates.wallpaperOverviewOpen && monitorIsFocused
visible: GlobalStates.wallpaperOverviewOpen
property var filteredWallpapers: Wallpapers.wallpapers
WlrLayershell.namespace: "quickshell:wallpaper-overview"
@@ -45,11 +39,6 @@ Scope {
anchors.top: parent.top
spacing: 8
Item {
width: 1
height: 1
}
TextField {
id: filterField
Layout.preferredWidth: bg.implicitWidth
@@ -418,7 +407,6 @@ Scope {
}
}
}
}
GlobalShortcut {
name: "wallpaperOverviewToggle"