Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

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 and Brandon-T committed Dec 14, 2023
1 parent c0925a0 commit 3f0c345
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 3f0c345

Please sign in to comment.