Commit abfa095e by Daniel Dahan

Merge pull request #290 from zgosalvez/development

Fixed Default TextField Colors
parents 7e5df226 46626f68
......@@ -298,6 +298,8 @@ public class TextField : UITextField {
if nil == lineLayerActiveColor {
lineLayerActiveColor = titleLabelActiveColor
}
tintColor = titleLabelActiveColor
}
}
......@@ -484,9 +486,9 @@ public class TextField : UITextField {
public func prepareView() {
backgroundColor = MaterialColor.white
masksToBounds = false
placeholderTextColor = MaterialColor.grey.base
placeholderTextColor = MaterialColor.darkText.others
font = RobotoFont.regularWithSize(16)
textColor = MaterialColor.grey.darken4
textColor = MaterialColor.darkText.primary
borderStyle = .None
prepareClearButton()
prepareTitleLabel()
......@@ -559,7 +561,7 @@ public class TextField : UITextField {
titleLabel.font = RobotoFont.mediumWithSize(12)
addSubview(titleLabel)
titleLabelColor = MaterialColor.grey.base
titleLabelColor = placeholderTextColor
titleLabelActiveColor = MaterialColor.blue.accent3
if 0 < text?.utf16.count {
......@@ -608,9 +610,10 @@ public class TextField : UITextField {
let image: UIImage? = MaterialIcon.cm.close
clearButton = FlatButton()
clearButton.contentEdgeInsets = UIEdgeInsetsZero
clearButton.pulseColor = MaterialColor.grey.base
clearButton.pulseColor = MaterialColor.black
clearButton.pulseOpacity = 0.12
clearButton.pulseScale = false
clearButton.tintColor = MaterialColor.grey.base
clearButton.tintColor = placeholderTextColor
clearButton.setImage(image, forState: .Normal)
clearButton.setImage(image, forState: .Highlighted)
clearButtonAutoHandleEnabled = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment