forked from Shinonome/dots-hyprland
WallpaperOverview: remove unnecessary Variants and Item
This commit is contained in:
@@ -14,17 +14,11 @@ import Quickshell.Hyprland
|
|||||||
Scope {
|
Scope {
|
||||||
id: scope
|
id: scope
|
||||||
|
|
||||||
Variants {
|
|
||||||
id: variants
|
|
||||||
model: Quickshell.screens
|
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: root
|
id: root
|
||||||
required property var modelData
|
|
||||||
readonly property HyprlandMonitor monitor: Hyprland.monitorFor(root.screen)
|
readonly property HyprlandMonitor monitor: Hyprland.monitorFor(root.screen)
|
||||||
property bool monitorIsFocused: (Hyprland.focusedMonitor?.id == monitor?.id)
|
property bool monitorIsFocused: (Hyprland.focusedMonitor?.id == monitor?.id)
|
||||||
screen: modelData
|
visible: GlobalStates.wallpaperOverviewOpen
|
||||||
visible: GlobalStates.wallpaperOverviewOpen && monitorIsFocused
|
|
||||||
property var filteredWallpapers: Wallpapers.wallpapers
|
property var filteredWallpapers: Wallpapers.wallpapers
|
||||||
|
|
||||||
WlrLayershell.namespace: "quickshell:wallpaper-overview"
|
WlrLayershell.namespace: "quickshell:wallpaper-overview"
|
||||||
@@ -45,11 +39,6 @@ Scope {
|
|||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
Item {
|
|
||||||
width: 1
|
|
||||||
height: 1
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
id: filterField
|
id: filterField
|
||||||
Layout.preferredWidth: bg.implicitWidth
|
Layout.preferredWidth: bg.implicitWidth
|
||||||
@@ -418,7 +407,6 @@ Scope {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
GlobalShortcut {
|
GlobalShortcut {
|
||||||
name: "wallpaperOverviewToggle"
|
name: "wallpaperOverviewToggle"
|
||||||
|
|||||||
Reference in New Issue
Block a user