mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change disabled color of reader view button to match other bar button items when disabled
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user