Skip to content

Commit b97fc73

Browse files
Bugfix FXIOS-12748 [Toolbar] Url gradient has wrong color (backport #27784) (#27789)
Bugfix FXIOS-12748 [Toolbar] Url gradient has wrong color (#27784) * Use correct color for gradient * Undo setting background color for icon container and lock icon (cherry picked from commit 4b500c2) Co-authored-by: Winnie Teichmann <[email protected]>
1 parent 00db58b commit b97fc73

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

BrowserKit/Sources/ToolbarKit/AddressToolbar/LocationView/LocationView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,8 @@ final class LocationView: UIView,
632632
urlTextFieldSubdomainColor = colors.textSecondary
633633
gradientLayer.colors = appearance.gradientColors
634634
searchEngineContentView.applyTheme(theme: theme)
635+
iconContainerBackgroundView.backgroundColor = appearance.backgroundColor
636+
lockIconButton.backgroundColor = appearance.backgroundColor
635637
urlTextField.applyTheme(theme: theme)
636638
urlTextField.attributedPlaceholder = NSAttributedString(
637639
string: urlTextField.placeholder ?? "",

BrowserKit/Sources/ToolbarKit/AddressToolbar/LocationView/LocationViewAppearanceConfiguration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ struct LocationViewAppearanceConfiguration {
2121
etpIconTintColor: colors.textSecondary,
2222
gradientColors: Gradient(
2323
colors: [
24-
colors.layer2.withAlphaComponent(1),
25-
colors.layer2.withAlphaComponent(0)
24+
colors.layerSurfaceMedium.withAlphaComponent(1),
25+
colors.layerSurfaceMedium.withAlphaComponent(0)
2626
]
2727
).cgColors
2828
)

0 commit comments

Comments
 (0)