diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-01-02 19:14:45 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-01-02 19:15:43 -0800 |
| commit | 7d670c5b63db44e32d33b7db3495b4d792866f86 (patch) | |
| tree | 0daff89e0cdac7e6becbc01f00d268e66f2849b6 /Hotline/macOS/ServerView.swift | |
| parent | 78a93e5f5ed74010a130367d27221b2a11fb6542 (diff) | |
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.
Diffstat (limited to 'Hotline/macOS/ServerView.swift')
| -rw-r--r-- | Hotline/macOS/ServerView.swift | 7 |
1 files changed, 4 insertions, 3 deletions
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() } } } |