hold for now.
This commit is contained in:
parent
3d98c91e73
commit
d2d4e3d42c
@ -308,9 +308,7 @@ import UIKit
|
|||||||
bottomBar.backgroundColor = UIColor.black.cgColor
|
bottomBar.backgroundColor = UIColor.black.cgColor
|
||||||
descriptionLabel?.textColor = .mfBattleshipGrey()
|
descriptionLabel?.textColor = .mfBattleshipGrey()
|
||||||
|
|
||||||
resizeBottomBar(size: 1)
|
refreshUI(bottomBarSize: 1)
|
||||||
|
|
||||||
refreshUI()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open func errorAppearance(showError: Bool = false) {
|
open func errorAppearance(showError: Bool = false) {
|
||||||
@ -326,9 +324,7 @@ import UIKit
|
|||||||
feedback = errorMessage
|
feedback = errorMessage
|
||||||
}
|
}
|
||||||
|
|
||||||
resizeBottomBar(size: 4)
|
refreshUI(bottomBarSize: 4)
|
||||||
|
|
||||||
refreshUI()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open func lockAppearance() {
|
open func lockAppearance() {
|
||||||
@ -338,9 +334,7 @@ import UIKit
|
|||||||
hideBorder = true
|
hideBorder = true
|
||||||
bottomBar.backgroundColor = UIColor.clear.cgColor
|
bottomBar.backgroundColor = UIColor.clear.cgColor
|
||||||
|
|
||||||
resizeBottomBar(size: 1)
|
refreshUI(bottomBarSize: 1)
|
||||||
|
|
||||||
refreshUI()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open func selectedAppearance() {
|
open func selectedAppearance() {
|
||||||
@ -351,9 +345,7 @@ import UIKit
|
|||||||
borderStrokeColor = .black
|
borderStrokeColor = .black
|
||||||
bottomBar.backgroundColor = UIColor.black.cgColor
|
bottomBar.backgroundColor = UIColor.black.cgColor
|
||||||
|
|
||||||
resizeBottomBar(size: 1)
|
refreshUI(bottomBarSize: 1)
|
||||||
|
|
||||||
refreshUI()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open func disabledAppearance() {
|
open func disabledAppearance() {
|
||||||
@ -365,12 +357,14 @@ import UIKit
|
|||||||
descriptionLabel?.textColor = self.isEnabled ? UIColor.mfBattleshipGrey() : UIColor.mfSilver()
|
descriptionLabel?.textColor = self.isEnabled ? UIColor.mfBattleshipGrey() : UIColor.mfSilver()
|
||||||
bottomBar.backgroundColor = self.isEnabled ? (self.showErrorMessage ? UIColor.mfPumpkin().cgColor : UIColor.black.cgColor) : UIColor.mfSilver().cgColor
|
bottomBar.backgroundColor = self.isEnabled ? (self.showErrorMessage ? UIColor.mfPumpkin().cgColor : UIColor.black.cgColor) : UIColor.mfSilver().cgColor
|
||||||
|
|
||||||
resizeBottomBar(size: 1)
|
refreshUI(bottomBarSize: 1)
|
||||||
|
|
||||||
refreshUI()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open func refreshUI() {
|
open func refreshUI(bottomBarSize: CGFloat? = nil) {
|
||||||
|
|
||||||
|
if let size = bottomBarSize, let fieldBounds = fieldContainer?.bounds {
|
||||||
|
bottomBar.frame = CGRect(x: 0, y: fieldBounds.height - size, width: fieldBounds.width, height: size)
|
||||||
|
}
|
||||||
|
|
||||||
self.delegateObject?.moleculeDelegate?.moleculeLayoutUpdated?(self)
|
self.delegateObject?.moleculeDelegate?.moleculeLayoutUpdated?(self)
|
||||||
setNeedsDisplay()
|
setNeedsDisplay()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user