Skip to content

Commit

Permalink
Ref #8417: Disable tint adjustment on secure state buttons (#8468)
Browse files Browse the repository at this point in the history
This turns off the grayscale effect that is given to the button while controllers are presented on top of the browser
  • Loading branch information
kylehickinson authored Nov 22, 2023
1 parent f8b18da commit 39e8183
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ class CollapsedURLBarView: UIView {
$0.alignment = .firstBaseline
}

private let secureContentStateView = UIButton()
private let secureContentStateView = UIButton().then {
$0.tintAdjustmentMode = .normal
}

private let separatorLine = UILabel().then {
$0.isUserInteractionEnabled = false
$0.isAccessibilityElement = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class TabLocationView: UIView {
button.configurationUpdateHandler = { [unowned self] btn in
btn.configuration = secureContentStateButtonConfiguration
}
button.tintAdjustmentMode = .normal
secureContentStateButton = button
leadingView = button
}
Expand Down

0 comments on commit 39e8183

Please sign in to comment.