Fix scroll bar not appearing in dark mode
This commit is contained in:
parent
7c1a8aa2f5
commit
256cb0958e
|
@ -76,6 +76,8 @@ class BrowserWebViewController: UIViewController {
|
|||
webView.navigationDelegate = self
|
||||
// it is safe to set the delegate of the web view's internal scroll view becuase WebKit takes care of forwarding between its internal delegate and our own
|
||||
webView.scrollView.delegate = scrollViewDelegate
|
||||
// this doesn't default to .default :S
|
||||
webView.scrollView.indicatorStyle = .default
|
||||
webView.translatesAutoresizingMaskIntoConstraints = false
|
||||
view.addSubview(webView)
|
||||
NSLayoutConstraint.activate([
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
//
|
||||
// NavigationBarView.swift
|
||||
// Gemini-iOS
|
||||
//
|
||||
// Created by Shadowfacts on 12/19/20.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class NavigationBarView: UIView {
|
||||
|
||||
/*
|
||||
// Only override draw() if you perform custom drawing.
|
||||
// An empty implementation adversely affects performance during animation.
|
||||
override func draw(_ rect: CGRect) {
|
||||
// Drawing code
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
|
@ -1,3 +1,7 @@
|
|||
:root {
|
||||
color-scheme: light dark;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: ui-serif;
|
||||
overflow-wrap: break-word;
|
||||
|
@ -40,11 +44,6 @@ ul {
|
|||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
|
||||
a {
|
||||
color: rgb(10, 132, 255);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue