Manos Chorianopoulos

fix buttons

...@@ -71,13 +71,13 @@ import SwiftEventBus ...@@ -71,13 +71,13 @@ import SwiftEventBus
71 nameLabel.text = ccms?._titleOffer ?? "" 71 nameLabel.text = ccms?._titleOffer ?? ""
72 descriptionLabel.text = ccms?._description ?? "" 72 descriptionLabel.text = ccms?._description ?? ""
73 73
74 - redeemButton.titleLabel?.font = UIFont(name: "PFSquareSansPro-Medium", size: 18) 74 + redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 17)
75 redeemButton.setTitle("Ενεργοποίηση", for: .normal) 75 redeemButton.setTitle("Ενεργοποίηση", for: .normal)
76 redeemButton.setTitleColor(.white, for: .normal) 76 redeemButton.setTitleColor(.white, for: .normal)
77 redeemButton.backgroundColor = UIColor(red: 0.47, green: 0.75, blue: 0.08, alpha: 1.00) 77 redeemButton.backgroundColor = UIColor(red: 0.47, green: 0.75, blue: 0.08, alpha: 1.00)
78 - redeemButton.layer.cornerRadius = 8.0 78 + redeemButton.layer.cornerRadius = 16.0
79 - redeemButton.frame = CGRect(x: 0.0, y: 0.0, width: redeemButton.intrinsicContentSize.width, height: 44) 79 + redeemButton.frame = CGRect(x: 0.0, y: 0.0, width: redeemButton.intrinsicContentSize.width, height: 55)
80 - redeemButton.contentEdgeInsets = UIEdgeInsets(top: 1, left: 16, bottom: 0, right: 16) 80 + redeemButton.contentEdgeInsets = UIEdgeInsets(top: 1, left: 28, bottom: 0, right: 28)
81 // Fix width for ipad 81 // Fix width for ipad
82 // if UIDevice.current.userInterfaceIdiom == .pad { 82 // if UIDevice.current.userInterfaceIdiom == .pad {
83 // // iPad 83 // // iPad
......
...@@ -99,7 +99,7 @@ import SwiftEventBus ...@@ -99,7 +99,7 @@ import SwiftEventBus
99 redeemButton.setTitleColor(.white, for: .normal) 99 redeemButton.setTitleColor(.white, for: .normal)
100 redeemButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00) 100 redeemButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00)
101 redeemButton.layer.cornerRadius = 16.0 101 redeemButton.layer.cornerRadius = 16.0
102 - redeemButton.frame = CGRect(x: 0.0, y: 0.0, width: redeemButton.intrinsicContentSize.width, height: 44) 102 + redeemButton.frame = CGRect(x: 0.0, y: 0.0, width: redeemButton.intrinsicContentSize.width, height: 55)
103 redeemButton.contentEdgeInsets = UIEdgeInsets(top: 1, left: 28, bottom: 0, right: 28) 103 redeemButton.contentEdgeInsets = UIEdgeInsets(top: 1, left: 28, bottom: 0, right: 28)
104 // Fix width for ipad 104 // Fix width for ipad
105 if UIDevice.current.userInterfaceIdiom == .pad { 105 if UIDevice.current.userInterfaceIdiom == .pad {
......
...@@ -104,8 +104,8 @@ import SwiftEventBus ...@@ -104,8 +104,8 @@ import SwiftEventBus
104 redeemButton.setTitleColor(.white, for: .normal) 104 redeemButton.setTitleColor(.white, for: .normal)
105 redeemButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00) 105 redeemButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00)
106 redeemButton.layer.cornerRadius = 16.0 106 redeemButton.layer.cornerRadius = 16.0
107 - redeemButton.frame = CGRect(x: 0.0, y: 0.0, width: redeemButton.intrinsicContentSize.width, height: 44) 107 + redeemButton.frame = CGRect(x: 0.0, y: 0.0, width: redeemButton.intrinsicContentSize.width, height: 55)
108 - redeemButton.contentEdgeInsets = UIEdgeInsets(top: 1, left: 16, bottom: 0, right: 16) 108 + redeemButton.contentEdgeInsets = UIEdgeInsets(top: 1, left: 28, bottom: 0, right: 28)
109 // Fix width for ipad 109 // Fix width for ipad
110 // if UIDevice.current.userInterfaceIdiom == .pad { 110 // if UIDevice.current.userInterfaceIdiom == .pad {
111 // // iPad 111 // // iPad
......