diff options
| author | Dustin Mierau <dustin@mierau.me> | 2023-12-23 11:10:32 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2023-12-23 11:10:32 -0800 |
| commit | e2eccde99075d2ca355a80bbbb7a3160d766b920 (patch) | |
| tree | 008c1bffa1066044da27cb714b258ffb5ebf9220 /Hotline/macOS/ServerView.swift | |
| parent | 674477d8c76d9625d0c3967c8fae54a5abdb86a4 (diff) | |
Quick pass at an emoji based icon set, matching icons to classic Hotline icons where possible.
Diffstat (limited to 'Hotline/macOS/ServerView.swift')
| -rw-r--r-- | Hotline/macOS/ServerView.swift | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Hotline/macOS/ServerView.swift b/Hotline/macOS/ServerView.swift index ce9b3dc..a385109 100644 --- a/Hotline/macOS/ServerView.swift +++ b/Hotline/macOS/ServerView.swift @@ -161,9 +161,17 @@ struct ServerView: View { Section("Users") { ForEach(model.users) { user in HStack { - Text("🙂") - .font(.headline) - .opacity(controlActiveState == .inactive ? 0.5 : 1.0) + if let iconString = Hotline.defaultIconSet[Int(user.iconID)] { + Text(iconString) + .font(.headline) + .frame(width: 18) + .opacity(controlActiveState == .inactive ? 0.5 : 1.0) + } + else { + Text("") + .frame(width: 18) + } + if user.status.contains(.admin) { if user.status.contains(.idle) { Text(user.name) |