import QtQuick import Quickshell import Quickshell.Widgets import Quickshell.Io import "../../notification/notificationServer/" import "../../../config" MouseArea { id: notificationButton width: Math.max(bar.height, notificationText.width + Config.spacing) height: bar.height hoverEnabled: true cursorShape: Qt.PointingHandCursor onClicked: { NotificationS.soundEnabled = !NotificationS.soundEnabled } Rectangle { anchors.fill: parent color: "transparent" radius: Config.radius_fun(notificationButton.height) Text { id: notificationText anchors.centerIn: parent // 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) // } } }