Commit 22da2736 by Daniel Dahan

minor cleanups

parent 2989fe57
...@@ -194,7 +194,7 @@ public class Preview: UIView { ...@@ -194,7 +194,7 @@ public class Preview: UIView {
// //
private func viewWithColor(color: UIColor) -> UIView { private func viewWithColor(color: UIColor) -> UIView {
let view: UIView = UIView(frame: Preview.boxBounds) let view: UIView = UIView(frame: Preview.boxBounds)
view.backgroundColor = .clearColor() view.backgroundColor = MaterialTheme.clear.color
view.layer.borderColor = color.CGColor view.layer.borderColor = color.CGColor
view.layer.borderWidth = 5 view.layer.borderWidth = 5
view.hidden = true view.hidden = true
......
...@@ -1213,7 +1213,7 @@ public class SideNavController: UIViewController, UIGestureRecognizerDelegate { ...@@ -1213,7 +1213,7 @@ public class SideNavController: UIViewController, UIGestureRecognizerDelegate {
// //
private func prepareMainContainer() { private func prepareMainContainer() {
mainViewContainer = UIView(frame: view.bounds) mainViewContainer = UIView(frame: view.bounds)
mainViewContainer!.backgroundColor = .clearColor() mainViewContainer!.backgroundColor = MaterialTheme.clear.color
mainViewContainer!.autoresizingMask = .FlexibleHeight | .FlexibleWidth mainViewContainer!.autoresizingMask = .FlexibleHeight | .FlexibleWidth
view.addSubview(mainViewContainer!) view.addSubview(mainViewContainer!)
} }
...@@ -1272,7 +1272,7 @@ public class SideNavController: UIViewController, UIGestureRecognizerDelegate { ...@@ -1272,7 +1272,7 @@ public class SideNavController: UIViewController, UIGestureRecognizerDelegate {
b.origin.x = originX b.origin.x = originX
b.origin.y = originY b.origin.y = originY
viewContainer = UIView(frame: b) viewContainer = UIView(frame: b)
viewContainer!.backgroundColor = .clearColor() viewContainer!.backgroundColor = MaterialTheme.clear.color
viewContainer!.autoresizingMask = .FlexibleHeight viewContainer!.autoresizingMask = .FlexibleHeight
view.addSubview(viewContainer!) view.addSubview(viewContainer!)
} }
......
...@@ -140,14 +140,14 @@ public class TextView: UITextView { ...@@ -140,14 +140,14 @@ public class TextView: UITextView {
// :description: Sets up the common initilized values. // :description: Sets up the common initilized values.
// //
private func setupView() { private func setupView() {
backgroundColor = .clearColor() backgroundColor = MaterialTheme.clear.color
textColor = MaterialTheme.black.color textColor = MaterialTheme.black.color
label.font = font label.font = font
label.textColor = MaterialTheme.blueGrey.lighten3 label.textColor = MaterialTheme.blueGrey.lighten3
label.textAlignment = textAlignment label.textAlignment = textAlignment
label.text = placeholder label.text = placeholder
label.numberOfLines = 0 label.numberOfLines = 0
label.backgroundColor = UIColor.clearColor() label.backgroundColor = MaterialTheme.clear.color
label.setTranslatesAutoresizingMaskIntoConstraints(false) label.setTranslatesAutoresizingMaskIntoConstraints(false)
addSubview(label) addSubview(label)
......
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