Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions firefox-ios/Client/Frontend/Browser/TopTabCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,7 @@ class TopTabCell: UICollectionViewCell, ThemeApplicable, ReusableCell, FeatureFl
titleText.textColor = colors.textPrimary
closeButton.tintColor = colors.textPrimary

if let toolbarState = store.state.screenState(ToolbarState.self, for: .toolbar, window: windowUUID),
toolbarState.isTranslucent {
cellBackground.backgroundColor = toolbarState.isTranslucent ? .clear : colors.actionTabInactive
} else {
cellBackground.backgroundColor = colors.actionTabInactive
}

cellBackground.backgroundColor = .clear
cellBackground.layer.shadowColor = UIColor.clear.cgColor
cellBackground.isHidden = false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,11 @@ class TopTabsViewController: UIViewController, Themeable, Notifiable, FeatureFla
let currentTheme = themeManager.getCurrentTheme(for: windowUUID)
let colors = currentTheme.colors

view.backgroundColor = .clear
if let toolbarState = store.state.screenState(ToolbarState.self, for: .toolbar, window: windowUUID),
toolbarState.isTranslucent {
view.backgroundColor = colors.layerSurfaceLow.withAlphaComponent(toolbarHelper.backgroundAlpha())
collectionView.backgroundColor = .clear
} else {
view.backgroundColor = colors.layer3
collectionView.backgroundColor = view.backgroundColor
}

Expand Down
Loading