Commit 6071b030 authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

[iOS] Fix the tools menu button

Moves the tools menu button closer to the center of the toolbar to have
the same spacing between the border of the screen and the first/last
button.

Bug: 912965
Change-Id: I2d4c9860c4eb9ffd9a821a90384b8d588a3bbe89
Reviewed-on: https://chromium-review.googlesource.com/c/1481314
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635483}
parent a50d79d7
......@@ -19,6 +19,10 @@
#error "This file requires ARC support."
#endif
namespace {
const CGFloat kToolsMenuOffset = -7;
} // namespace
@interface SecondaryToolbarView ()<ToolbarCollapsing>
// Factory used to create the buttons.
@property(nonatomic, strong) ToolbarButtonFactory* buttonFactory;
......@@ -129,6 +133,11 @@
self.tabGridButton = [self.buttonFactory tabGridButton];
self.toolsMenuButton = [self.buttonFactory toolsMenuButton];
// Move the tools menu button such as it looks visually balanced with the
// button on the other side of the toolbar.
self.toolsMenuButton.transform =
CGAffineTransformMakeTranslation(kToolsMenuOffset, 0);
self.allButtons = @[
self.backButton, self.forwardButton, self.omniboxButton, self.tabGridButton,
self.toolsMenuButton
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment