From 7d670c5b63db44e32d33b7db3495b4d792866f86 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Tue, 2 Jan 2024 19:14:45 -0800 Subject: Fix banners not loading. First crack at adding a classic icon set with icons painsakenly pulled from the original Hotline client. May try to "remaster" these somehow. --- Hotline/macOS/ServerView.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Hotline/macOS/ServerView.swift') diff --git a/Hotline/macOS/ServerView.swift b/Hotline/macOS/ServerView.swift index 7d89481..ae8a104 100644 --- a/Hotline/macOS/ServerView.swift +++ b/Hotline/macOS/ServerView.swift @@ -262,11 +262,11 @@ struct ServerView: View { Section("Users") { ForEach(model.users) { user in HStack { - if let iconString = Hotline.defaultIconSet[Int(user.iconID)] { - Text(iconString) - .font(.headline) + if let iconImage = Hotline.getClassicIcon(Int(user.iconID)) { + Image(nsImage: iconImage) .frame(width: 18) .opacity(controlActiveState == .inactive ? 0.5 : 1.0) + .opacity(user.isIdle ? 0.5 : 1.0) } else { Text("") @@ -373,6 +373,7 @@ struct ServerView: View { print("GETTING USER LIST????!") self.sendPreferences() self.model.getUserList() + self.model.downloadBanner() } } } -- cgit