Fix scroll indicator color in dark mode

This commit is contained in:
Shadowfacts 2021-10-07 09:29:12 -04:00
parent 32648808cb
commit bea574d7bb
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
2 changed files with 2 additions and 3 deletions

View File

@ -14,6 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
static let defaultHomepage = URL(string: "gemini://gemini.circumlunar.space/")! static let defaultHomepage = URL(string: "gemini://gemini.circumlunar.space/")!
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
SymbolCache.load() SymbolCache.load()
return true return true
@ -47,4 +48,3 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
} }
} }

View File

@ -62,11 +62,10 @@ class BrowserWebViewController: UIViewController {
configureRenderer() configureRenderer()
view.backgroundColor = .systemBackground view.backgroundColor = .systemBackground
webView = WKWebView() webView = WKWebView()
webView.backgroundColor = .systemBackground webView.backgroundColor = .systemBackground
webView.isOpaque = false
webView.navigationDelegate = self webView.navigationDelegate = self
webView.uiDelegate = self webView.uiDelegate = 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 // 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