Visibility service for handling active popups
This commit is contained in:
parent
89cf6f315b
commit
9873324823
4 changed files with 24 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue