added setNeedsUpdate to textColorConfiguration
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
dba0b2dc4f
commit
f10ea3d5d6
@ -66,7 +66,7 @@ open class Label: UILabel, Handlerable, ViewProtocol, Resettable, UserInfoable {
|
|||||||
public var textColorConfiguration: AnyColorable = ViewColorConfiguration().with {
|
public var textColorConfiguration: AnyColorable = ViewColorConfiguration().with {
|
||||||
$0.setSurfaceColors(VDSColor.interactiveDisabledOnlight, VDSColor.interactiveDisabledOndark, forDisabled: true)
|
$0.setSurfaceColors(VDSColor.interactiveDisabledOnlight, VDSColor.interactiveDisabledOndark, forDisabled: true)
|
||||||
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forDisabled: false)
|
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forDisabled: false)
|
||||||
}.eraseToAnyColorable()
|
}.eraseToAnyColorable(){ didSet { setNeedsUpdate() }}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Initializers
|
// MARK: - Initializers
|
||||||
|
|||||||
@ -155,7 +155,7 @@ extension Tabs {
|
|||||||
label.text = text
|
label.text = text
|
||||||
label.textStyle = textStyle
|
label.textStyle = textStyle
|
||||||
label.textPosition = textPosition
|
label.textPosition = textPosition
|
||||||
label.textColor = textColorConfiguration.getColor(self)
|
label.textColorConfiguration = textColorConfiguration.eraseToAnyColorable()
|
||||||
|
|
||||||
//constaints
|
//constaints
|
||||||
labelWidthConstraint?.isActive = false
|
labelWidthConstraint?.isActive = false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user