iOS: Appearance tweaks
This commit is contained in:
parent
cf1574c54a
commit
d188802480
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user