iOS: Appearance tweaks

This commit is contained in:
Shadowfacts 2020-09-27 22:42:02 -04:00
parent cf1574c54a
commit d188802480
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 5 additions and 3 deletions

View File

@ -14,6 +14,8 @@ struct ContentView: View {
@State private var showPreferencesSheet = false @State private var showPreferencesSheet = false
private let shareCurrentURL: () -> Void private let shareCurrentURL: () -> Void
@Environment(\.colorScheme) var colorScheme: ColorScheme
init(navigator: NavigationManager, shareCurrentURL: @escaping () -> Void) { init(navigator: NavigationManager, shareCurrentURL: @escaping () -> Void) {
self.navigator = navigator self.navigator = navigator
self._urlFieldContents = State(initialValue: navigator.currentURL.absoluteString) self._urlFieldContents = State(initialValue: navigator.currentURL.absoluteString)
@ -26,9 +28,9 @@ struct ContentView: View {
barBorder barBorder
Spacer() Spacer(minLength: 0)
BrowserView(navigator: navigator) BrowserView(navigator: navigator)
Spacer() Spacer(minLength: 0)
barBorder barBorder
@ -46,7 +48,7 @@ struct ContentView: View {
private var barBorder: some View { private var barBorder: some View {
Rectangle() Rectangle()
.frame(height: 1) .frame(height: 1)
.foregroundColor(Color(white: 0.75)) .foregroundColor(Color(white: colorScheme == .dark ? 0.25 : 0.75))
} }
private var urlBar: some View { private var urlBar: some View {