Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[IB2-420] [Ghostery CC] [Ghost Tab] header has a different color than…

… the omnibar
  • Loading branch information
Tim Palade authored and sharath-cliqz committed Sep 7, 2018
1 parent 3659ef7 commit cf2a5f3491d99b791284fb548ce33cd0c80f53ae
@@ -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)

0 comments on commit cf2a5f3

Please sign in to comment.