different icon when tracked notifs > 0
This commit is contained in:
@@ -8,6 +8,7 @@ import QtQuick.Effects
|
||||
import QtQuick
|
||||
import Quickshell.Services.Notifications
|
||||
import qs.Config
|
||||
import qs.Helpers
|
||||
|
||||
PanelWindow {
|
||||
id: root
|
||||
@@ -26,6 +27,14 @@ PanelWindow {
|
||||
|
||||
mask: Region { item: backgroundRect }
|
||||
|
||||
onNotificationsChanged: {
|
||||
if ( root.notifications.length > 0 ) {
|
||||
HasNotifications.hasNotifications = true;
|
||||
} else {
|
||||
HasNotifications.hasNotifications = false;
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
id: ipcHandler
|
||||
target: "root"
|
||||
|
||||
@@ -14,7 +14,7 @@ MouseArea {
|
||||
property point globalPos
|
||||
|
||||
implicitWidth: 22
|
||||
implicitHeight: 22
|
||||
implicitHeight: parent.height
|
||||
|
||||
hoverEnabled: true
|
||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||
|
||||
@@ -9,11 +9,11 @@ Rectangle {
|
||||
id: root
|
||||
required property PanelWindow bar
|
||||
implicitHeight: parent.height
|
||||
implicitWidth: rowL.implicitWidth + 20
|
||||
implicitWidth: rowL.implicitWidth + 10
|
||||
color: "transparent"
|
||||
|
||||
RowLayout {
|
||||
spacing: 10
|
||||
spacing: 5
|
||||
id: rowL
|
||||
anchors.centerIn: parent
|
||||
Repeater {
|
||||
|
||||
Reference in New Issue
Block a user