This commit is contained in:
pika 2025-06-16 20:56:32 +02:00
parent d711bc59e9
commit fd04b21188
4 changed files with 174 additions and 13 deletions

View file

@ -4,6 +4,9 @@ import Quickshell
import Quickshell.Wayland
ShellRoot {
// Add a property to control activation widget visibility
property bool isActivationWidgetVisible: false
Variants {
// Create the panel once on each monitor.
model: Quickshell.screens
@ -36,6 +39,9 @@ ShellRoot {
// fullscreen windows.
WlrLayershell.layer: WlrLayer.Overlay
// Only show when isActivationWidgetVisible is true
visible: root.isActivationWidgetVisible
ColumnLayout {
id: content
@ -51,6 +57,14 @@ ShellRoot {
font.pointSize: 14
}
}
// Add a click handler to close the widget
MouseArea {
anchors.fill: parent
onClicked: {
root.isActivationWidgetVisible = false
}
}
}
}
}