Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[IB2-420] [Ghostery CC] [Ghost Tab] header has a different color than…
- Loading branch information
|
|
@@ -65,6 +65,7 @@ extension BrowserViewController { |
|
|
|
|
|
let controlCenter = ControlCenterViewController() |
|
|
controlCenter.delegate = self |
|
|
controlCenter.privateMode = self.tabManager.selectedTab?.isPrivate ?? false |
|
|
|
|
|
if let pageUrl = pageUrl { |
|
|
controlCenter.pageURL = pageUrl |
|
|
|
|
|
@@ -20,6 +20,8 @@ class ControlCenterViewController: UIViewController { |
|
|
|
|
|
var model: ControlCenterModel = ControlCenterModel() |
|
|
|
|
|
var privateMode: Bool = false |
|
|
|
|
|
weak var delegate: ControlCenterViewControllerDelegate? = nil |
|
|
|
|
|
private var topTranparentView = UIView() |
|
|
@@ -117,11 +119,10 @@ class ControlCenterViewController: UIViewController { |
|
|
self.view.backgroundColor = UIColor.clear |
|
|
|
|
|
let bgView = UIView() |
|
|
bgView.backgroundColor = UIColor.cliqzURLBarColor |
|
|
|
|
|
bgView.backgroundColor = UIColor.CliqzURLBar.Background.color(isPBM: self.privateMode) |
|
|
panelSwitchControl = UISegmentedControl(items: items) |
|
|
panelSwitchControl.tintColor = UIColor.white |
|
|
panelSwitchControl.backgroundColor = UIColor.cliqzURLBarColor |
|
|
panelSwitchControl.backgroundColor = UIColor.CliqzURLBar.Background.color(isPBM: self.privateMode) |
|
|
panelSwitchControl.addTarget(self, action: #selector(switchPanel), for: .valueChanged) |
|
|
bgView.addSubview(panelSwitchControl) |
|
|
self.view.addSubview(bgView) |
|
|
|