lux-shell/modules/bar/components/notifications/Notifications.qml
2025-08-29 16:53:28 -04:00

31 lines
570 B
QML

import qs.components
import qs.constants
import qs.services
import QtQuick
StyledIconButton {
id: root
onClicked: {
menu.toggle();
}
text: Notifications.hasNotifications ? Icons.bell : Icons.bellRing
states: State {
when: Notifications.hasNotifications
PropertyChanges {
root {
text: Icons.bellRing
}
}
}
NotificationMenu {
id: menu
anchor.item: root
anchor.rect.x: root.width / 2 - width / 2
anchor.rect.y: root.height + 8
}
}