diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-25 10:59:16 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-25 10:59:16 +0200 |
commit | d7ce621cb2d1c4a91844ac1111e7c041c58dec8e (patch) | |
tree | fc83b3d576107edfbda44bc9ac4f54861d99c004 /WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift | |
parent | wireguard-go-bridge: work around Go 1.13.3 regression (diff) | |
download | wireguard-apple-d7ce621cb2d1c4a91844ac1111e7c041c58dec8e.tar.xz wireguard-apple-d7ce621cb2d1c4a91844ac1111e7c041c58dec8e.zip |
UI: iOS: more dark mode fixes
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift index 58d98c9..e805db5 100644 --- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift @@ -52,7 +52,11 @@ class TunnelsListTableViewController: UIViewController { override func loadView() { view = UIView() - view.backgroundColor = .white + if #available(iOS 13.0, *) { + view.backgroundColor = .systemBackground + } else { + view.backgroundColor = .white + } tableView.dataSource = self tableView.delegate = self @@ -395,7 +399,11 @@ extension TunnelsListTableViewController: TunnelsManagerListDelegate { (splitViewController.viewControllers[0] as? UINavigationController)?.popToRootViewController(animated: false) } else { let detailVC = UIViewController() - detailVC.view.backgroundColor = .white + if #available(iOS 13.0, *) { + detailVC.view.backgroundColor = .systemBackground + } else { + detailVC.view.backgroundColor = .white + } let detailNC = UINavigationController(rootViewController: detailVC) splitViewController.showDetailViewController(detailNC, sender: self) } |