Commit a3713c07 by Daniel Dahan

development: updated button defaults

parent 6861382d
......@@ -168,6 +168,7 @@ public class Button: UIButton {
*/
public func prepareView() {
contentScaleFactor = Device.scale
contentEdgeInsetsPreset = .none
prepareVisualLayer()
}
......
......@@ -41,6 +41,5 @@ public class FlatButton: Button {
public override func prepareView() {
super.prepareView()
cornerRadiusPreset = .cornerRadius1
contentEdgeInsetsPreset = .wideRectangle3
}
}
......@@ -40,9 +40,7 @@ public class IconButton: Button {
*/
public override func prepareView() {
super.prepareView()
cornerRadiusPreset = .cornerRadius1
pulseAnimation = .center
shapePreset = .circle
contentEdgeInsetsPreset = .none
}
}
......@@ -42,7 +42,6 @@ public class RaisedButton: Button {
super.prepareView()
depthPreset = .depth1
cornerRadiusPreset = .cornerRadius1
contentEdgeInsetsPreset = .wideRectangle3
backgroundColor = Color.white
}
}
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