forked from Shinonome/dots-hyprland
overview: (properly) put overview grid in loader
This commit is contained in:
@@ -10,23 +10,16 @@ import Quickshell.Wayland
|
|||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
|
|
||||||
Scope {
|
Scope {
|
||||||
id: root
|
|
||||||
|
|
||||||
Variants {
|
Variants {
|
||||||
model: Quickshell.screens
|
model: Quickshell.screens
|
||||||
|
|
||||||
Loader {
|
|
||||||
id: overviewLoader
|
|
||||||
active: GlobalStates.overviewOpen
|
|
||||||
property var modelData
|
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: root
|
id: root
|
||||||
|
required property var modelData
|
||||||
property string searchingText: ""
|
property string searchingText: ""
|
||||||
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
|
screen: modelData
|
||||||
visible: true
|
visible: GlobalStates.overviewOpen
|
||||||
|
|
||||||
WlrLayershell.namespace: "quickshell:overview"
|
WlrLayershell.namespace: "quickshell:overview"
|
||||||
WlrLayershell.layer: WlrLayer.Overlay
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
@@ -98,16 +91,18 @@ Scope {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
OverviewWidget {
|
Loader {
|
||||||
|
id: overviewLoader
|
||||||
|
active: GlobalStates.overviewOpen
|
||||||
|
sourceComponent: OverviewWidget {
|
||||||
panelWindow: root
|
panelWindow: root
|
||||||
visible: (root.searchingText == "")
|
visible: (root.searchingText == "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
IpcHandler {
|
IpcHandler {
|
||||||
target: "overview"
|
target: "overview"
|
||||||
|
|||||||
Reference in New Issue
Block a user