diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-16 00:10:48 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-16 00:10:48 +1000 |
| commit | d8f7bac960e07504153c5d6123e4a50b4802343e (patch) | |
| tree | ef6b037ed68b8475f1080a08cb480363bfe150dc /utils | |
| parent | internal: static bar width (diff) | |
| download | caelestia-shell-d8f7bac960e07504153c5d6123e4a50b4802343e.tar.gz caelestia-shell-d8f7bac960e07504153c5d6123e4a50b4802343e.tar.bz2 caelestia-shell-d8f7bac960e07504153c5d6123e4a50b4802343e.zip | |
bar/workspaces: refactor
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/Icons.qml | 15 |
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(); + } } |