Visibility service for handling active popups

This commit is contained in:
Benjamin Palko 2025-07-31 11:47:46 -04:00
parent 89cf6f315b
commit 9873324823
4 changed files with 24 additions and 11 deletions

View file

@ -1,3 +1,4 @@
import qs.services
import QtQuick
import Quickshell
import Quickshell.Widgets
@ -9,10 +10,15 @@ PopupWindow {
property alias margins: background.margin
property alias backgroundColor: background.color
property alias radius: background.radius
property alias state: background.state
required property Component content
color: "transparent"
function toggle() {
Visibility.togglePopup(this);
}
implicitWidth: background.width
Behavior on implicitWidth {
NumberAnimation {