forked from Shinonome/dots-hyprland
WallpaperOverview: remove unnecessary Variants and Item
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user