mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-06 07:19:27 -05:00
31 lines
825 B
QML
31 lines
825 B
QML
import "root:/"
|
|
import "root:/modules/common/"
|
|
import "root:/modules/common/widgets"
|
|
import "root:/services"
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
import Quickshell.Hyprland
|
|
|
|
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]
|
|
}
|
|
} |