Manos Chorianopoulos

CouponBarcodeViewController ui fixes

...@@ -194,13 +194,13 @@ import AVFoundation ...@@ -194,13 +194,13 @@ import AVFoundation
194 194
195 expirationLabel.text = "Το κουπόνι ισχύει έως " + (coupon?.expiration ?? "") 195 expirationLabel.text = "Το κουπόνι ισχύει έως " + (coupon?.expiration ?? "")
196 196
197 - redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 18) 197 + redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 17)
198 redeemButton.setTitle("Δώρισέ το", for: .normal) 198 redeemButton.setTitle("Δώρισέ το", for: .normal)
199 redeemButton.setTitleColor(.white, for: .normal) 199 redeemButton.setTitleColor(.white, for: .normal)
200 redeemButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00) 200 redeemButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00)
201 redeemButton.layer.cornerRadius = 16.0 201 redeemButton.layer.cornerRadius = 16.0
202 - redeemButton.frame = CGRect(x: 0.0, y: 0.0, width: redeemButton.intrinsicContentSize.width, height: 44) 202 + redeemButton.frame = CGRect(x: 0.0, y: 0.0, width: redeemButton.intrinsicContentSize.width, height: 55)
203 - redeemButton.contentEdgeInsets = UIEdgeInsets(top: 1, left: 16, bottom: 0, right: 16) 203 + redeemButton.contentEdgeInsets = UIEdgeInsets(top: 1, left: 28, bottom: 0, right: 28)
204 // Fix width for ipad 204 // Fix width for ipad
205 // if UIDevice.current.userInterfaceIdiom == .pad { 205 // if UIDevice.current.userInterfaceIdiom == .pad {
206 // // iPad 206 // // iPad
...@@ -210,12 +210,12 @@ import AVFoundation ...@@ -210,12 +210,12 @@ import AVFoundation
210 // redeemButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true 210 // redeemButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
211 // } 211 // }
212 212
213 - mapButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 18) 213 + mapButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 17)
214 mapButton.setTitle("Δες τα καταστήματα", for: .normal) 214 mapButton.setTitle("Δες τα καταστήματα", for: .normal)
215 mapButton.setTitleColor(UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00), for: .normal) 215 mapButton.setTitleColor(UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00), for: .normal)
216 mapButton.layer.cornerRadius = 15.0 216 mapButton.layer.cornerRadius = 15.0
217 - mapButton.frame = CGRect(x: 0.0, y: 0.0, width: mapButton.intrinsicContentSize.width, height: 44) 217 + mapButton.frame = CGRect(x: 0.0, y: 0.0, width: mapButton.intrinsicContentSize.width, height: 55)
218 - mapButton.contentEdgeInsets = UIEdgeInsets(top: 1, left: 16, bottom: 0, right: 16) 218 + mapButton.contentEdgeInsets = UIEdgeInsets(top: 1, left: 28, bottom: 0, right: 28)
219 mapButton.backgroundColor = .clear 219 mapButton.backgroundColor = .clear
220 mapButton.layer.borderWidth = 2 220 mapButton.layer.borderWidth = 2
221 mapButton.layer.borderColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00).cgColor 221 mapButton.layer.borderColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00).cgColor
...@@ -268,7 +268,7 @@ import AVFoundation ...@@ -268,7 +268,7 @@ import AVFoundation
268 // mapButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true 268 // mapButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
269 // } 269 // }
270 270
271 - termsButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 16) 271 + termsButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 15)
272 // termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5) 272 // termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
273 termsButton.setTitle("Όροι χρήσης", for: .normal) 273 termsButton.setTitle("Όροι χρήσης", for: .normal)
274 termsButton.setTitleColor(UIColor(red: 0.13, green: 0.13, blue: 0.13, alpha: 1.00), for: .normal) 274 termsButton.setTitleColor(UIColor(red: 0.13, green: 0.13, blue: 0.13, alpha: 1.00), for: .normal)
...@@ -281,9 +281,9 @@ import AVFoundation ...@@ -281,9 +281,9 @@ import AVFoundation
281 281
282 let htmlText = couponSetData?.terms ?? "" 282 let htmlText = couponSetData?.terms ?? ""
283 termsTextView.attributedText = htmlText.htmlToAttributedString 283 termsTextView.attributedText = htmlText.htmlToAttributedString
284 - termsTextView.font = UIFont(name: "PeridotPE-Regular", size: 15) 284 + termsTextView.font = UIFont(name: "PeridotPE-Regular", size: 16)
285 termsTextView.textColor = UIColor(red: 0.62, green: 0.62, blue: 0.61, alpha: 1.00) 285 termsTextView.textColor = UIColor(red: 0.62, green: 0.62, blue: 0.61, alpha: 1.00)
286 - termsTextView.textAlignment = .center 286 + termsTextView.textAlignment = .left
287 termsTextView.isScrollEnabled = false 287 termsTextView.isScrollEnabled = false
288 288
289 termsTextView.isUserInteractionEnabled = true 289 termsTextView.isUserInteractionEnabled = true
......