fix: action buttons for status missing highlighed state
This commit is contained in:
parent
04dbe9ebc9
commit
7e1571a493
|
@ -17,10 +17,10 @@ protocol ActionToolbarContainerDelegate: AnyObject {
|
||||||
|
|
||||||
final class ActionToolbarContainer: UIView {
|
final class ActionToolbarContainer: UIView {
|
||||||
|
|
||||||
let replyButton = HitTestExpandedButton()
|
let replyButton = HighlightDimmableButton()
|
||||||
let reblogButton = HitTestExpandedButton()
|
let reblogButton = HighlightDimmableButton()
|
||||||
let favoriteButton = HitTestExpandedButton()
|
let favoriteButton = HighlightDimmableButton()
|
||||||
let moreButton = HitTestExpandedButton()
|
let moreButton = HighlightDimmableButton()
|
||||||
|
|
||||||
var isReblogButtonHighlight: Bool = false {
|
var isReblogButtonHighlight: Bool = false {
|
||||||
didSet { isReblogButtonHighlightStateDidChange(to: isReblogButtonHighlight) }
|
didSet { isReblogButtonHighlightStateDidChange(to: isReblogButtonHighlight) }
|
||||||
|
@ -97,6 +97,7 @@ extension ActionToolbarContainer {
|
||||||
button.titleLabel?.font = .monospacedDigitSystemFont(ofSize: 12, weight: .regular)
|
button.titleLabel?.font = .monospacedDigitSystemFont(ofSize: 12, weight: .regular)
|
||||||
button.setTitle("", for: .normal)
|
button.setTitle("", for: .normal)
|
||||||
button.setTitleColor(.secondaryLabel, for: .normal)
|
button.setTitleColor(.secondaryLabel, for: .normal)
|
||||||
|
button.expandEdgeInsets = UIEdgeInsets(top: -10, left: -10, bottom: -10, right: -10)
|
||||||
button.setInsets(forContentPadding: .zero, imageTitlePadding: style.buttonTitleImagePadding)
|
button.setInsets(forContentPadding: .zero, imageTitlePadding: style.buttonTitleImagePadding)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue