43 lines
1019 B
QML
43 lines
1019 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Services.Notifications
|
|
import Quickshell.Widgets
|
|
import qs.Services
|
|
import qs.Widgets
|
|
|
|
PopupWindow {
|
|
|
|
anchor.item:root
|
|
anchor.rect.y: parentWindow.height
|
|
implicitWidth: 400
|
|
implicitHeight: 1000
|
|
color: "white"
|
|
visible:true
|
|
|
|
id: notificationRoot
|
|
|
|
// Since the panel's screen is unset, it will be picked by the compositor
|
|
// when the window is created. Most compositors pick the current active monitor.
|
|
|
|
|
|
// An empty click mask prevents the window from blocking mouse events.
|
|
Component {
|
|
id: contactDelegate
|
|
NotificationPopup {
|
|
id: myItem
|
|
required property string notification
|
|
}
|
|
}
|
|
|
|
ListView {
|
|
anchors.fill: parent
|
|
model: NotificationService.trackedNotifications.values
|
|
delegate: contactDelegate
|
|
highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
|
|
focus: true
|
|
}
|
|
}
|