Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx committed Dec 10, 2024
1 parent 28f752e commit 890480a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,7 @@ final class AddressBarButtonsViewController: NSViewController {
bookmarkButton.position = .right
privacyEntryPointButton.position = .left
}
let isFlaggedAsMalicious = (tabViewModel?.tab.privacyInfo?.malicousSiteThreatKind != .none)
privacyEntryPointButton.isAnimationEnabled = !isFlaggedAsMalicious
privacyEntryPointButton.normalTintColor = isFlaggedAsMalicious ? .fireButtonRedPressed : .privacyEnabled
privacyEntryPointButton.mouseOverTintColor = isFlaggedAsMalicious ? .alertRedHover : privacyEntryPointButton.mouseOverTintColor
privacyEntryPointButton.mouseDownTintColor = isFlaggedAsMalicious ? .alertRedPressed : privacyEntryPointButton.mouseDownTintColor

privacyEntryPointButton.sendAction(on: .leftMouseUp)

imageButton.applyFaviconStyle()
Expand Down

0 comments on commit 890480a

Please sign in to comment.