diff options
| author | Dustin Mierau <dustin@mierau.me> | 2023-12-07 00:14:31 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2023-12-07 00:14:31 -0800 |
| commit | f0e278db3b6e9022355ac8a25c301936f15454cf (patch) | |
| tree | 5d5e62efcb4a626edf2c4ad885d069aad5b36c13 /Hotline/Views/NewsView.swift | |
| parent | 2305aa8eab18ec5e60d940351793642145de5bd5 (diff) | |
Few style changes in chat and files and news.
Diffstat (limited to 'Hotline/Views/NewsView.swift')
| -rw-r--r-- | Hotline/Views/NewsView.swift | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Hotline/Views/NewsView.swift b/Hotline/Views/NewsView.swift index 9c4d34a..78282d6 100644 --- a/Hotline/Views/NewsView.swift +++ b/Hotline/Views/NewsView.swift @@ -3,6 +3,7 @@ import SwiftUI struct NewsView: View { @Environment(HotlineState.self) private var appState @Environment(HotlineClient.self) private var hotline + @Environment(\.colorScheme) var colorScheme @State private var fetched = false @State private var selectedCategory: HotlineNewsCategory? = nil @@ -43,6 +44,7 @@ struct NewsView: View { } .padding() } + .background(colorScheme == .dark ? Color(white: 0.1) : Color(uiColor: UIColor.systemBackground)) } var body: some View { @@ -54,14 +56,19 @@ struct NewsView: View { Divider() Spacer() HStack(alignment: .center) { - Image(systemName: "line.3.horizontal") - .opacity(0.2) - .font(.system(size: 14)) + Rectangle() + .fill(.tertiary) + .frame(width: 50, height: 6, alignment: .center) + .cornerRadius(10) +// .opacity(0.3) +// Image(systemName: "line.3.horizontal") +// .opacity(0.2) +// .font(.system(size: 14)) } Spacer() // Divider() } - .background(Color(uiColor: UIColor.systemBackground)) + .background(colorScheme == .dark ? Color(white: 0.1) : Color(uiColor: UIColor.systemBackground)) .frame(maxWidth: .infinity) .frame(height: dividerHeight) .gesture( |