Manos Chorianopoulos

fix fonts

......@@ -71,7 +71,7 @@ import SwiftEventBus
nameLabel.text = ccms?._titleOffer ?? ""
descriptionLabel.text = ccms?._description ?? ""
redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 17)
redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 17)
redeemButton.setTitle("Ενεργοποίηση", for: .normal)
redeemButton.setTitleColor(.white, for: .normal)
redeemButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00)
......
......@@ -198,7 +198,7 @@ import AVFoundation
expirationLabel.text = "Το κουπόνι ισχύει έως " + (coupon?.expiration ?? "")
redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 17)
redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 17)
redeemButton.setTitle("Δώρισέ το", for: .normal)
redeemButton.setTitleColor(.white, for: .normal)
redeemButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00)
......
......@@ -104,11 +104,11 @@ import SwiftEventBus
// Fix width for ipad
if UIDevice.current.userInterfaceIdiom == .pad {
// iPad
redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 19)
redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 19)
// redeemButton.widthAnchor.constraint(equalToConstant: 250).isActive = true
} else {
// not iPad (iPhone, mac, tv, carPlay, unspecified)
redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 17)
redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 17)
// redeemButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
}
......
......@@ -36,7 +36,7 @@ import SwiftEventBus
leftButton.backgroundColor = . clear
leftButton.setTitleColor(UIColor(rgb: 0x212121), for:.normal)
rightButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 15)
rightButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 15)
rightButton.setTitle("Μοιρασμένα δώρα", for:.normal)
rightButton.backgroundColor = . clear
rightButton.setTitleColor(UIColor(rgb: 0x848484), for:.normal)
......@@ -142,7 +142,7 @@ import SwiftEventBus
self.rightLineView.isHidden = true
self.leftButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 15)
self.rightButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 15)
self.rightButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 15)
self.leftButton.setTitleColor(UIColor(rgb: 0x212121), for:.normal)
self.rightButton.setTitleColor(UIColor(rgb: 0x848484), for:.normal)
......@@ -161,7 +161,7 @@ import SwiftEventBus
self.leftLineView.isHidden = true
self.rightLineView.isHidden = false
self.leftButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 15)
self.leftButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 15)
self.rightButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 15)
self.rightButton.setTitleColor(UIColor(rgb: 0x212121), for:.normal)
......@@ -217,7 +217,7 @@ extension LoyaltyAnalysisViewController: UIPageViewControllerDataSource, UIPageV
let currentIndex = childVCs[0].index
if (currentIndex == 0) {
self.leftButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 15)
self.rightButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 15)
self.rightButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 15)
self.leftButton.setTitleColor(UIColor(rgb: 0x212121), for:.normal)
self.rightButton.setTitleColor(UIColor(rgb: 0x848484), for:.normal)
self.tabSelected = 0
......@@ -225,7 +225,7 @@ extension LoyaltyAnalysisViewController: UIPageViewControllerDataSource, UIPageV
self.rightLineView.isHidden = true
} else {
self.leftButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 15)
self.leftButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 15)
self.rightButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 15)
self.rightButton.setTitleColor(UIColor(rgb: 0x212121), for:.normal)
self.leftButton.setTitleColor(UIColor(rgb: 0x848484), for:.normal)
......
......@@ -99,7 +99,7 @@ import SwiftEventBus
numberTextField.keyboardType = .asciiCapableNumberPad
numberTextField.addDoneButtonOnKeyboard()
redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 17)
redeemButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 17)
redeemButton.setTitle("Αποστολή με SMS", for: .normal)
redeemButton.setTitleColor(.white, for: .normal)
redeemButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00)
......
......@@ -91,7 +91,7 @@ import SwiftEventBus
borderLineView.applyGradient(colours: [UIColor(rgb: 0x0AA3CD), UIColor(rgb: 0x6ECA43)], gradient: GradientOrientation.horizontal, cornerRadius: 0.0)
activateButton.titleLabel?.font = UIFont(name: "PeridotPE-SemiBold", size: 17)
activateButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 17)
activateButton.setTitle("Ενεργοποίηση", for: .normal)
activateButton.setTitleColor(.white, for: .normal)
activateButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00)
......