forked from Shinonome/dots-hyprland
waffles: popup notifs
This commit is contained in:
+7
-4
@@ -15,6 +15,9 @@ MouseArea {
|
||||
required property var notification
|
||||
property bool expanded: notification.actions.length > 0
|
||||
property string groupExpandControlMessage: ""
|
||||
|
||||
readonly property bool isPopup: notification?.popup ?? false
|
||||
|
||||
signal groupExpandToggle
|
||||
hoverEnabled: true
|
||||
|
||||
@@ -56,8 +59,8 @@ MouseArea {
|
||||
Rectangle {
|
||||
id: contentItem
|
||||
width: parent.width
|
||||
color: Looks.colors.bgPanelBody
|
||||
radius: Looks.radius.medium
|
||||
color: root.isPopup ? Looks.colors.bg0 : Looks.colors.bgPanelBody
|
||||
radius: root.isPopup ? Looks.radius.large : Looks.radius.medium
|
||||
property real padding: 12
|
||||
implicitHeight: notificationContent.implicitHeight + padding * 2
|
||||
implicitWidth: notificationContent.implicitWidth + padding * 2
|
||||
@@ -157,9 +160,9 @@ MouseArea {
|
||||
|
||||
NotificationHeaderButton {
|
||||
Layout.rightMargin: 4
|
||||
opacity: root.containsMouse ? 1 : 0
|
||||
opacity: (root.containsMouse || root.isPopup) ? 1 : 0
|
||||
icon.name: "dismiss"
|
||||
implicitSize: 12
|
||||
implicitSize: 14
|
||||
onClicked: root.dismiss()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user