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

View File

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