Commit a3713c07 by Daniel Dahan

development: updated button defaults

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