mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Change disabled color of reader view button to match other bar button items when disabled
This commit is contained in:
parent
08f7e6d1a4
commit
79e7653619
@ -26,6 +26,14 @@ class ArticleExtractorButton: UIButton {
|
||||
super.init(coder: coder)
|
||||
}
|
||||
|
||||
override var isEnabled: Bool {
|
||||
didSet {
|
||||
if isEnabled != oldValue {
|
||||
tintColor = isEnabled ? nil : UIColor.secondaryLabel
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var buttonState: ArticleExtractorButtonState = .off {
|
||||
didSet {
|
||||
if buttonState != oldValue {
|
||||
|
Loading…
Reference in New Issue
Block a user