fix: Toggle notification sound functionality

This commit is contained in:
Hannes
2026-08-28 12:41:31 +02:00
parent f2e8d8a144
commit 8352ba5a56
2 changed files with 12 additions and 11 deletions
+10 -10
View File
@@ -13,7 +13,7 @@ MouseArea {
cursorShape: Qt.PointingHandCursor
onClicked: {
menuProc.running = true
NotificationS.soundEnabled = !NotificationS.soundEnabled
}
Rectangle {
@@ -24,18 +24,18 @@ MouseArea {
Text {
id: notificationText
anchors.centerIn: parent
text: Quickshell.iconPath("discord")
// text: "󰂚"
font.pixelSize: Config.bigIconSize(notificationButton.height)
// text: Quickshell.iconPath("discord")
text: NotificationS.soundEnabled ? "󰂚" : "󰂛"
font.pixelSize: Config.bigIconSize(bar.height)
font.family: Config.font
color: Colors.secondaryContainer_fg
}
Image{
id: iconImage
source: Quickshell.iconPath("discord")
width: Config.bigIconSize(notificationButton.height)
height: Config.bigIconSize(notificationButton.height)
}
// Image{
// id: iconImage
// source: Quickshell.iconPath("discord")
// width: Config.bigIconSize(notificationButton.height)
// height: Config.bigIconSize(notificationButton.height)
// }
}
}