Fix scroll bar not appearing in dark mode

This commit is contained in:
Shadowfacts 2020-12-19 19:40:16 -05:00
parent 7c1a8aa2f5
commit 256cb0958e
3 changed files with 26 additions and 5 deletions

View File

@ -76,6 +76,8 @@ class BrowserWebViewController: UIViewController {
webView.navigationDelegate = self 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 // 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 webView.scrollView.delegate = scrollViewDelegate
// this doesn't default to .default :S
webView.scrollView.indicatorStyle = .default
webView.translatesAutoresizingMaskIntoConstraints = false webView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(webView) view.addSubview(webView)
NSLayoutConstraint.activate([ NSLayoutConstraint.activate([

View File

@ -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
}
*/
}

View File

@ -1,3 +1,7 @@
:root {
color-scheme: light dark;
}
body { body {
font-family: ui-serif; font-family: ui-serif;
overflow-wrap: break-word; overflow-wrap: break-word;
@ -40,11 +44,6 @@ ul {
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
body {
background-color: black;
color: white;
}
a { a {
color: rgb(10, 132, 255); color: rgb(10, 132, 255);
} }