more tray icon replacements
This commit is contained in:
@@ -13,3 +13,5 @@ uv.lock
|
|||||||
.qtcreator/
|
.qtcreator/
|
||||||
dist/
|
dist/
|
||||||
**/target/
|
**/target/
|
||||||
|
**/test-plugins/
|
||||||
|
**/Charts/
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ JsonObject {
|
|||||||
{
|
{
|
||||||
perc: 20,
|
perc: 20,
|
||||||
name: qsTr("Low battery"),
|
name: qsTr("Low battery"),
|
||||||
message: qsTr("Battery at %1%").arg(Battery.currentPerc * 100),
|
message: qsTr("Battery is low"),
|
||||||
icon: "battery_android_frame_2"
|
icon: "battery_android_frame_2"
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -29,6 +29,13 @@ Item {
|
|||||||
return Quickshell.iconPath("telegram-mute-panel");
|
return Quickshell.iconPath("telegram-mute-panel");
|
||||||
else if (icon === Quickshell.iconPath("com.ayugram.desktop-symbolic"))
|
else if (icon === Quickshell.iconPath("com.ayugram.desktop-symbolic"))
|
||||||
return Quickshell.iconPath("telegram-panel");
|
return Quickshell.iconPath("telegram-panel");
|
||||||
|
} else if (app === "TelegramDesktop") {
|
||||||
|
if (icon === Quickshell.iconPath("org.telegram.desktop-symbolic"))
|
||||||
|
return Quickshell.iconPath("telegram-panel");
|
||||||
|
else if (icon === Quickshell.iconPath("org.telegram.desktop-attention-symbolic"))
|
||||||
|
return Quickshell.iconPath("telegram-attention-panel");
|
||||||
|
else if (icon === Quickshell.iconPath("org.telegram.desktop-mute-symbolic"))
|
||||||
|
return Quickshell.iconPath("telegram-mute-panel");
|
||||||
}
|
}
|
||||||
|
|
||||||
return root.item.icon;
|
return root.item.icon;
|
||||||
|
|||||||
Reference in New Issue
Block a user