diff options
Diffstat (limited to 'utils/Icons.qml')
| -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(); + } } |