From 4fd69c02a3e7b581bb9229865336c315153f3b18 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Tue, 19 Dec 2023 20:38:13 -0800 Subject: Beginnings of a UI for macOS as well as some visual changes to iOS client. :) --- Hotline/Views/UsersView.swift | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 Hotline/Views/UsersView.swift (limited to 'Hotline/Views/UsersView.swift') diff --git a/Hotline/Views/UsersView.swift b/Hotline/Views/UsersView.swift deleted file mode 100644 index d1f3318..0000000 --- a/Hotline/Views/UsersView.swift +++ /dev/null @@ -1,41 +0,0 @@ -import SwiftUI - -struct UsersView: View { - @Environment(Hotline.self) private var model: Hotline - - var body: some View { - NavigationStack { - List(model.users) { u in - Text("🤖 \(u.name)") - .fontWeight(.medium) - .lineLimit(1) - .truncationMode(.tail) - .foregroundStyle(u.status.contains(.admin) ? Color(hex: 0xE10000) : Color.accentColor) - .opacity(u.status.contains(.idle) ? 0.5 : 1.0) - } - .scrollBounceBehavior(.basedOnSize) - .navigationBarTitleDisplayMode(.inline) - .toolbar { - ToolbarItem(placement: .principal) { - Text(model.serverTitle) - .font(.headline) - } - ToolbarItem(placement: .navigationBarLeading) { - Button { - model.disconnect() - } label: { - Text(Image(systemName: "xmark.circle.fill")) - .symbolRenderingMode(.hierarchical) - .font(.title2) - .foregroundColor(.secondary) - } - } - } - } - } -} - -#Preview { - ChatView() - .environment(Hotline(trackerClient: HotlineTrackerClient(), client: HotlineClient())) -} -- cgit