notification button

This commit is contained in:
Benjamin Palko 2025-07-24 14:02:11 -04:00
parent e964ee2337
commit 65b4762c90
5 changed files with 86 additions and 3 deletions

View file

@ -59,9 +59,9 @@ Scope {
anchors.verticalCenter: parent.verticalCenter
}
Tray {
anchors.verticalCenter: parent.verticalCenter
}
// Tray {
// anchors.verticalCenter: parent.verticalCenter
// }
}
Row {
@ -127,6 +127,10 @@ Scope {
Clock {
anchors.verticalCenter: parent.verticalCenter
}
Notifications {
anchors.verticalCenter: parent.verticalCenter
}
}
}
}

View file

@ -0,0 +1,44 @@
import QtQuick
import Quickshell.Io
import "../../../config/"
import "../../../constants/"
import "../../../services/"
import "../../../styled/"
Clickable {
id: clickable
implicitWidth: text.width
implicitHeight: Dimensions.notifications.height
onClicked: {
Notifications.clear();
}
StyledText {
id: text
font.family: Theme.lucide.font.family
font.pixelSize: Dimensions.notifications.fontSize
font.bold: true
text: Icons.bell
color: clickable.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent
anchors.verticalCenter: parent.verticalCenter
topPadding: Dimensions.notifications.verticalPadding
bottomPadding: Dimensions.notifications.verticalPadding
leftPadding: Dimensions.notifications.horizontalPadding
rightPadding: Dimensions.notifications.horizontalPadding
states: State {
when: Notifications.hasNotifications
PropertyChanges {
text {
text: Icons.bellRing
color: clickable.containsMouse ? Theme.palette.base300 : Theme.palette.secondary
}
}
}
}
}