different icon when tracked notifs > 0
This commit is contained in:
@@ -4,6 +4,7 @@ import Quickshell
|
||||
import Quickshell.Io
|
||||
import qs.Modules
|
||||
import qs.Config
|
||||
import qs.Helpers
|
||||
|
||||
Scope {
|
||||
Variants {
|
||||
@@ -16,10 +17,6 @@ Scope {
|
||||
screen: modelData
|
||||
property var root: Quickshell.shellDir
|
||||
|
||||
Component.onCompleted: {
|
||||
console.log(modelData.x);
|
||||
}
|
||||
|
||||
Process {
|
||||
id: ncProcess
|
||||
command: ["sh", "-c", `qs -p ${bar.root}/shell.qml ipc call root showCenter`]
|
||||
@@ -102,10 +99,11 @@ Scope {
|
||||
}
|
||||
|
||||
Text {
|
||||
id: notificationCenterIcon
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
text: "\ue7f4"
|
||||
text: HasNotifications.hasNotifications ? "\uf4fe" : "\ue7f4"
|
||||
font.family: "Material Symbols Rounded"
|
||||
font.pixelSize: 20
|
||||
font.pixelSize: 22
|
||||
color: "white"
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
Reference in New Issue
Block a user