Skip to content

Commit

Permalink
Ref brave/brave-ios#8417: Disable tint adjustment on secure state but…
Browse files Browse the repository at this point in the history
…tons (brave/brave-ios#8468)

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 026f1f0 commit 5b78e90
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 5b78e90

Please sign in to comment.