summaryrefslogtreecommitdiff
path: root/utils/Icons.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-16 00:10:48 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-16 00:10:48 +1000
commitd8f7bac960e07504153c5d6123e4a50b4802343e (patch)
treeef6b037ed68b8475f1080a08cb480363bfe150dc /utils/Icons.qml
parentinternal: static bar width (diff)
downloadcaelestia-shell-d8f7bac960e07504153c5d6123e4a50b4802343e.tar.gz
caelestia-shell-d8f7bac960e07504153c5d6123e4a50b4802343e.tar.bz2
caelestia-shell-d8f7bac960e07504153c5d6123e4a50b4802343e.zip
bar/workspaces: refactor
Diffstat (limited to 'utils/Icons.qml')
-rw-r--r--utils/Icons.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/Icons.qml b/utils/Icons.qml
index 7551eac..3363e55 100644
--- a/utils/Icons.qml
+++ b/utils/Icons.qml
@@ -183,4 +183,19 @@ Singleton {
return "volume_down";
return "volume_mute";
}
+
+ function getSpecialWsIcon(name: string): string {
+ name = name.toLowerCase().slice("special:".length);
+ if (name === "special")
+ return "star";
+ if (name === "communication")
+ return "forum";
+ if (name === "music")
+ return "music_note";
+ if (name === "todo")
+ return "checklist";
+ if (name === "sysmon")
+ return "monitor_heart";
+ return name[0].toUpperCase();
+ }
}