diff options
| author | Dustin Mierau <dustin@mierau.me> | 2023-12-06 22:52:09 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2023-12-06 22:52:09 -0800 |
| commit | e3392bb948ad53889ad334140952f2acf614668e (patch) | |
| tree | 74937a9202b3bb71f28ef9d8e0b3560bdd195b49 /Hotline/Views/ChatView.swift | |
| parent | 195af38221d1a4358455ba8501b87e4098da101b (diff) | |
Some work on news. More UI tweaks across the board.
Diffstat (limited to 'Hotline/Views/ChatView.swift')
| -rw-r--r-- | Hotline/Views/ChatView.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Hotline/Views/ChatView.swift b/Hotline/Views/ChatView.swift index dc6e1d4..1aee6b2 100644 --- a/Hotline/Views/ChatView.swift +++ b/Hotline/Views/ChatView.swift @@ -2,6 +2,7 @@ import SwiftUI struct ChatView: View { @Environment(HotlineClient.self) private var hotline + @Environment(\.colorScheme) var colorScheme @State var input: String = "" @State private var scrollPos: Int? @@ -17,13 +18,12 @@ struct ChatView: View { LazyVStack(alignment: .leading) { ForEach(hotline.chatMessages) { msg in if msg.type == .agreement { - VStack(alignment: .leading) { Text(msg.text) .padding() .opacity(0.75) - .background(Color(white: 0.96)) - .cornerRadius(20) + .background(colorScheme == .dark ? Color(white: 0.1) : Color(white: 0.96)) + .cornerRadius(16) } .padding() } |