Skip to content

Commit 891a301

Browse files
authored
Bugfix FXIOS-13543 ⁃ [iOS 26][iPad] Tab name bar color differs from the rest of the toolbar (#29869)
* FXIOS-13543 #29439 ⁃ [iOS 26][iPad] Tab name bar color differs from the rest of the toolbar * Set clear background for view
1 parent d8a8c93 commit 891a301

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

firefox-ios/Client/Frontend/Browser/TopTabCell.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,7 @@ class TopTabCell: UICollectionViewCell, ThemeApplicable, ReusableCell, FeatureFl
142142
titleText.textColor = colors.textPrimary
143143
closeButton.tintColor = colors.textPrimary
144144

145-
if let toolbarState = store.state.screenState(ToolbarState.self, for: .toolbar, window: windowUUID),
146-
toolbarState.isTranslucent {
147-
cellBackground.backgroundColor = toolbarState.isTranslucent ? .clear : colors.actionTabInactive
148-
} else {
149-
cellBackground.backgroundColor = colors.actionTabInactive
150-
}
151-
145+
cellBackground.backgroundColor = .clear
152146
cellBackground.layer.shadowColor = UIColor.clear.cgColor
153147
cellBackground.isHidden = false
154148
}

firefox-ios/Client/Frontend/Browser/TopTabsViewController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,11 @@ class TopTabsViewController: UIViewController, Themeable, Notifiable, FeatureFla
210210
let currentTheme = themeManager.getCurrentTheme(for: windowUUID)
211211
let colors = currentTheme.colors
212212

213+
view.backgroundColor = .clear
213214
if let toolbarState = store.state.screenState(ToolbarState.self, for: .toolbar, window: windowUUID),
214215
toolbarState.isTranslucent {
215-
view.backgroundColor = colors.layerSurfaceLow.withAlphaComponent(toolbarHelper.backgroundAlpha())
216216
collectionView.backgroundColor = .clear
217217
} else {
218-
view.backgroundColor = colors.layer3
219218
collectionView.backgroundColor = view.backgroundColor
220219
}
221220

0 commit comments

Comments
 (0)