From d52c969948354254436f55f34ee3acf30eabbd15 Mon Sep 17 00:00:00 2001 From: Sabrina Tardio Date: Tue, 7 May 2024 11:40:03 +0200 Subject: [PATCH] remove zoom button on hover, fix bar button treatment --- .../View/AddressBarButtonsViewController.swift | 3 +-- DuckDuckGo/NavigationBar/View/NavigationBar.storyboard | 10 +++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/DuckDuckGo/NavigationBar/View/AddressBarButtonsViewController.swift b/DuckDuckGo/NavigationBar/View/AddressBarButtonsViewController.swift index 975217aa58..84ee662d4c 100644 --- a/DuckDuckGo/NavigationBar/View/AddressBarButtonsViewController.swift +++ b/DuckDuckGo/NavigationBar/View/AddressBarButtonsViewController.swift @@ -164,7 +164,6 @@ final class AddressBarButtonsViewController: NSViewController { didSet { if isMouseOverNavigationBar != oldValue { updateBookmarkButtonVisibility() - updateZoomButtonVisibility() } } } @@ -320,7 +319,7 @@ final class AddressBarButtonsViewController: NSViewController { && !isTextFieldEditorFirstResponder && !isAnyTrackerAnimationPlaying && !isAnyShieldAnimationPlaying - && (hasNonDefaultZoom || isMouseOverNavigationBar || zoomPopover?.isShown == true) + && (hasNonDefaultZoom || zoomPopover?.isShown == true) zoomButton.isHidden = !shouldShowZoom } diff --git a/DuckDuckGo/NavigationBar/View/NavigationBar.storyboard b/DuckDuckGo/NavigationBar/View/NavigationBar.storyboard index 20efa231aa..4c40900c02 100644 --- a/DuckDuckGo/NavigationBar/View/NavigationBar.storyboard +++ b/DuckDuckGo/NavigationBar/View/NavigationBar.storyboard @@ -699,7 +699,7 @@ -