From e2eccde99075d2ca355a80bbbb7a3160d766b920 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Sat, 23 Dec 2023 11:10:32 -0800 Subject: Quick pass at an emoji based icon set, matching icons to classic Hotline icons where possible. --- Hotline/macOS/ServerView.swift | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Hotline/macOS/ServerView.swift') 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) -- cgit