mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
27 lines
No EOL
703 B
QML
27 lines
No EOL
703 B
QML
import qs
|
|
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import qs.services
|
|
import QtQuick
|
|
import Quickshell
|
|
|
|
StyledListView { // Scrollable window
|
|
id: root
|
|
property bool popup: false
|
|
|
|
spacing: 3
|
|
|
|
model: ScriptModel {
|
|
values: root.popup ? Notifications.popupAppNameList : Notifications.appNameList
|
|
}
|
|
delegate: NotificationGroup {
|
|
required property int index
|
|
required property var modelData
|
|
popup: root.popup
|
|
anchors.left: parent?.left
|
|
anchors.right: parent?.right
|
|
notificationGroup: popup ?
|
|
Notifications.popupGroupsByAppName[modelData] :
|
|
Notifications.groupsByAppName[modelData]
|
|
}
|
|
} |