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

Long press on urlbar theme colors (#450)

fixes #447
  • Loading branch information
chrmod authored and winsmith committed Aug 21, 2019
1 parent 6d77b23 commit 52dea5bef3894a38e2ffbbe959f87332872ab842
@@ -1647,12 +1647,7 @@ extension BrowserViewController: URLBarDelegate {
let urlActions = self.getLongPressLocationBarActions(with: urlBar)
let generator = UIImpactFeedbackGenerator(style: .heavy)
generator.impactOccurred()
if #available(iOS 11.0, *), let tab = self.tabManager.selectedTab {
let trackingProtectionMenu = self.getTrackingMenu(for: tab, presentingOn: urlBar)
self.presentSheetWith(actions: [urlActions, trackingProtectionMenu], on: self, from: urlBar)
} else {
self.presentSheetWith(actions: [urlActions], on: self, from: urlBar)
}
self.presentSheetWith(actions: [urlActions], on: self, from: urlBar)
// Cliqz: Close control center or vpn panel
self.hidePrivacyPanel()
}
@@ -95,7 +95,7 @@ class PhotonActionSheet: UIViewController, UITableViewDelegate, UITableViewDataS
let button = UIButton()
button.setTitle(Strings.CloseButtonTitle, for: .normal)
button.backgroundColor = UIColor.theme.actionMenu.closeButtonBackground
button.setTitleColor(UIConstants.SystemBlueColor, for: .normal)
button.setTitleColor(UIColor.theme.actionMenu.foreground, for: .normal)
button.layer.cornerRadius = PhotonActionSheetUX.CornerRadius
button.titleLabel?.font = DynamicFontHelper.defaultHelper.DeviceFontExtraLargeBold
button.addTarget(self, action: #selector(dismiss), for: .touchUpInside)
@@ -28,7 +28,7 @@ fileprivate class DarkTableViewColor: TableViewColor {
}

fileprivate class DarkActionMenuColor: ActionMenuColor {
override var foreground: UIColor { return defaultTextAndTint }
override var foreground: UIColor { return UIColor.white }
override var iPhoneBackground: UIColor { return UIColor.Photon.Grey90.withAlphaComponent(0.9) }
override var closeButtonBackground: UIColor { return defaultBackground }

0 comments on commit 52dea5b

Please sign in to comment.