Added default text color for enabled and disabled states.
This commit is contained in:
parent
39edb4c055
commit
00feea9a58
@ -109,6 +109,8 @@ open class CaretButton: MFCustomButton {
|
|||||||
@objc open override func setAsMolecule() {
|
@objc open override func setAsMolecule() {
|
||||||
|
|
||||||
backgroundColor = .clear
|
backgroundColor = .clear
|
||||||
|
setTitleColor(enabledColor, for: .normal)
|
||||||
|
setTitleColor(disabledColor, for: .disabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc override open func setWithJSON(_ json: [AnyHashable: Any]?, delegate: NSObject?, additionalData: [AnyHashable: Any]?) {
|
@objc override open func setWithJSON(_ json: [AnyHashable: Any]?, delegate: NSObject?, additionalData: [AnyHashable: Any]?) {
|
||||||
@ -120,8 +122,8 @@ open class CaretButton: MFCustomButton {
|
|||||||
backgroundColor = UIColor.mfGet(forHex: backgroundColorHex)
|
backgroundColor = UIColor.mfGet(forHex: backgroundColorHex)
|
||||||
}
|
}
|
||||||
|
|
||||||
if let enableColorHex = dictionary["enableColor"] as? String {
|
if let enabledColorHex = dictionary["enabledColor"] as? String {
|
||||||
enabledColor = UIColor.mfGet(forHex: enableColorHex)
|
enabledColor = UIColor.mfGet(forHex: enabledColorHex)
|
||||||
}
|
}
|
||||||
|
|
||||||
if let disabledColorHex = dictionary["disabledColor"] as? String {
|
if let disabledColorHex = dictionary["disabledColor"] as? String {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user