From 670eecfb25d4bbf9fa6c45c0f51b07854a473256 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Fri, 6 Oct 2023 11:02:44 -0400 Subject: [PATCH] Ref #8078: Fix collapsed URL bar background color The tabs bar now has a background and in general colors around these have changed so we can now just set the alpha of the tabs bar entirely instead of the subviews alone --- Sources/Brave/Frontend/Browser/BrowserViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Brave/Frontend/Browser/BrowserViewController.swift b/Sources/Brave/Frontend/Browser/BrowserViewController.swift index ae67f3a8977..3dd5d8d53cf 100644 --- a/Sources/Brave/Frontend/Browser/BrowserViewController.swift +++ b/Sources/Brave/Frontend/Browser/BrowserViewController.swift @@ -2441,7 +2441,7 @@ public class BrowserViewController: UIViewController { topToolbar.locationContainer.alpha = 1 topToolbar.actionButtons.forEach { $0.alpha = topToolbar.locationContainer.alpha } header.collapsedBarContainerView.alpha = 1 - topToolbar.locationContainer.alpha - tabsBar.view.subviews.forEach { $0.alpha = topToolbar.locationContainer.alpha } + tabsBar.view.alpha = topToolbar.locationContainer.alpha toolbar?.actionButtons.forEach { $0.alpha = topToolbar.locationContainer.alpha } } animator.startAnimation() @@ -2464,7 +2464,7 @@ public class BrowserViewController: UIViewController { toolbarBottomConstraint?.update(offset: min(footerHeight, max(0, footerHeight * (1 - progress)))) } topToolbar.actionButtons.forEach { $0.alpha = topToolbar.locationContainer.alpha } - tabsBar.view.subviews.forEach { $0.alpha = topToolbar.locationContainer.alpha } + tabsBar.view.alpha = topToolbar.locationContainer.alpha header.collapsedBarContainerView.alpha = 1 - topToolbar.locationContainer.alpha toolbar?.actionButtons.forEach { $0.alpha = topToolbar.locationContainer.alpha } return @@ -2479,7 +2479,7 @@ public class BrowserViewController: UIViewController { topToolbar.locationContainer.alpha = 0 toolbarBottomConstraint?.update(offset: footerHeight) } - tabsBar.view.subviews.forEach { $0.alpha = topToolbar.locationContainer.alpha } + tabsBar.view.alpha = topToolbar.locationContainer.alpha topToolbar.actionButtons.forEach { $0.alpha = topToolbar.locationContainer.alpha } header.collapsedBarContainerView.alpha = 1 - topToolbar.locationContainer.alpha toolbar?.actionButtons.forEach { $0.alpha = topToolbar.locationContainer.alpha }