Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Fixes #2658 Status bar has wrong appearance in light mode (backport #2676) #2682

Merged
merged 1 commit into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Blockzilla/AboutViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ class AboutViewController: UIViewController, UITableViewDataSource, UITableViewD
}
}

override var preferredStatusBarStyle: UIStatusBarStyle {
return UIStatusBarStyle.lightContent
}

func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 4
}
Expand Down
6 changes: 0 additions & 6 deletions Blockzilla/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,3 @@ protocol ModalDelegate {
func presentModal(viewController: UIViewController, animated: Bool)
func presentSheet(viewController: UIViewController)
}

extension UINavigationController {
override open var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
}
4 changes: 0 additions & 4 deletions Blockzilla/BrowserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,6 @@ class BrowserViewController: UIViewController {
submit(url: url)
}

override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}

override func viewWillAppear(_ animated: Bool) {
navigationController?.setNavigationBarHidden(true, animated: animated)

Expand Down
4 changes: 0 additions & 4 deletions Blockzilla/SettingsContentViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ class SettingsContentViewController: UIViewController, WKNavigationDelegate {
super.viewWillAppear(animated)
}

override var preferredStatusBarStyle: UIStatusBarStyle {
return UIStatusBarStyle.lightContent
}

override func viewDidLoad() {
super.viewDidLoad()

Expand Down
4 changes: 0 additions & 4 deletions Blockzilla/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,6 @@ class SettingsViewController: UIViewController, UITableViewDataSource, UITableVi
}
}

override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}

private func createBiometricLoginToggleIfAvailable() -> BlockerToggle? {
guard biometryType.hasBiometry else { return nil }

Expand Down