diff --git a/modules/NotifCenter.qml b/modules/NotifCenter.qml index 50c95d6..0d8e669 100644 --- a/modules/NotifCenter.qml +++ b/modules/NotifCenter.qml @@ -2,14 +2,15 @@ import QtQuick import Quickshell.Services.Notifications import "." as M -M.PopupPanel { +M.HoverPanel { id: menuWindow - panelWidth: 350 + popupMode: true + contentWidth: 350 // Header: title + clear all + DND toggle Item { - width: menuWindow.panelWidth + width: menuWindow.contentWidth height: 32 Text { @@ -133,7 +134,7 @@ M.PopupPanel { // Separator Rectangle { - width: menuWindow.panelWidth - 16 + width: menuWindow.contentWidth - 16 height: 1 anchors.horizontalCenter: parent.horizontalCenter color: M.Theme.base03 @@ -142,7 +143,7 @@ M.PopupPanel { // Notification list (scrollable) ListView { id: notifList - width: menuWindow.panelWidth + width: menuWindow.contentWidth height: Math.min(contentHeight, 60 * (M.Modules.notifications.maxVisible || 10)) clip: true boundsBehavior: Flickable.StopAtBounds @@ -153,7 +154,7 @@ M.PopupPanel { required property var modelData required property int index - width: menuWindow.panelWidth + width: menuWindow.contentWidth height: _targetHeight * _heightScale opacity: 0 clip: true @@ -370,7 +371,7 @@ M.PopupPanel { NumberAnimation { target: notifItem property: "x" - to: menuWindow.panelWidth + to: menuWindow.contentWidth duration: 200 easing.type: Easing.InCubic } @@ -411,7 +412,7 @@ M.PopupPanel { // Empty state Text { visible: M.NotifService.count === 0 - width: menuWindow.panelWidth + width: menuWindow.contentWidth height: 48 horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter