Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Switched the position of menuButton and tabsButton
- Loading branch information
Showing
with
8 additions
and
5 deletions.
-
+3
−0
Client/Frontend/Browser/TabToolbar.swift
-
+5
−5
Cliqz/URLBar/CliqzURLBar.swift
|
|
@@ -215,7 +215,10 @@ class TabToolbar: UIView { |
|
|
private let contentView = UIStackView() |
|
|
|
|
|
fileprivate override init(frame: CGRect) { |
|
|
/* Cliqz: Switched the position of menuButton and tabsButton |
|
|
actionButtons = [backButton, forwardButton, stopReloadButton, tabsButton, menuButton] |
|
|
*/ |
|
|
actionButtons = [backButton, forwardButton, stopReloadButton, menuButton, tabsButton] |
|
|
super.init(frame: frame) |
|
|
setupAccessibility() |
|
|
|
|
|
|
|
|
@@ -110,20 +110,20 @@ class CliqzURLBar: URLBarView { |
|
|
make.size.equalTo(URLBarViewUX.ButtonHeight) |
|
|
} |
|
|
|
|
|
stopReloadButton.snp.makeConstraints { make in |
|
|
stopReloadButton.snp.remakeConstraints { make in |
|
|
make.left.equalTo(self.forwardButton.snp.right) |
|
|
make.centerY.equalTo(self) |
|
|
make.size.equalTo(URLBarViewUX.ButtonHeight) |
|
|
} |
|
|
|
|
|
menuButton.snp.makeConstraints { make in |
|
|
tabsButton.snp.remakeConstraints { make in |
|
|
make.trailing.equalTo(self.safeArea.trailing).offset(-URLBarViewUX.Padding) |
|
|
make.centerY.equalTo(self) |
|
|
make.size.equalTo(URLBarViewUX.ButtonHeight) |
|
|
} |
|
|
|
|
|
tabsButton.snp.makeConstraints { make in |
|
|
make.trailing.equalTo(self.menuButton.snp.leading) |
|
|
menuButton.snp.remakeConstraints { make in |
|
|
make.trailing.equalTo(self.tabsButton.snp.leading) |
|
|
make.centerY.equalTo(self) |
|
|
make.size.equalTo(URLBarViewUX.ButtonHeight) |
|
|
} |
|
|
@@ -180,7 +180,7 @@ class CliqzURLBar: URLBarView { |
|
|
} else { |
|
|
self.ghosteryButton.snp.remakeConstraints { (make) in |
|
|
if self.toolbarIsShowing { |
|
|
make.trailing.equalTo(self.tabsButton.snp.leading) |
|
|
make.trailing.equalTo(self.menuButton.snp.leading) |
|
|
} |
|
|
else { |
|
|
make.trailing.equalTo(self.safeArea.trailing).offset(-URLBarViewUX.Padding) |
|
|
|