Manos Chorianopoulos

WalletViewController refactor part 1

......@@ -14,6 +14,8 @@ import SwiftEventBus
@IBOutlet weak var profileImage: UIImageView!
@IBOutlet weak var profileNameLabel: UILabel!
@IBOutlet weak var questionnaireButton: UIButton!
@IBOutlet weak var historyButtonView: UIView!
@IBOutlet weak var historyButtonImage: UIImageView!
@IBOutlet weak var dfyEarnBannerView: UIView!
@IBOutlet weak var dfyEarnBannerHeight: NSLayoutConstraint!
@IBOutlet weak var dfyEarnBannerTopSpace: NSLayoutConstraint!
......@@ -164,6 +166,7 @@ import SwiftEventBus
}
headerImage.image = UIImage(named: "ic_background_straight", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
historyButtonImage.image = UIImage(named: "ic_time_forward_blue", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
dfyEarnImage.image = UIImage(named: "wallet_dfy_3", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
couponEarnImage.image = UIImage(named: "wallet_coupons_4", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
dfyLogoImage.image = UIImage(named: "dfy_logo_colored", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
......@@ -216,10 +219,15 @@ import SwiftEventBus
questionnaireButton.frame = CGRect(x: 0.0, y: 0.0, width: questionnaireButton.intrinsicContentSize.width, height: 42)
questionnaireButton.contentEdgeInsets = UIEdgeInsets(top: 12, left: 20, bottom: 12, right: 20)
questionnaireButton.layer.cornerRadius = 15.0
questionnaireButton.layer.borderWidth = 2
questionnaireButton.layer.cornerRadius = 16.0
questionnaireButton.layer.borderWidth = 1
questionnaireButton.layer.borderColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00).cgColor
historyButtonView.backgroundColor = .clear
historyButtonView.layer.cornerRadius = 16.0
historyButtonView.layer.borderWidth = 1
historyButtonView.layer.borderColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00).cgColor
dfyEarnBannerInnerView.layer.cornerRadius = 16.5
// dfyEarnBannerInnerView.layer.borderWidth = 1
// dfyEarnBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
......@@ -538,8 +546,8 @@ import SwiftEventBus
questionnaireButton.frame = CGRect(x: 0.0, y: 0.0, width: questionnaireButton.intrinsicContentSize.width, height: 42)
questionnaireButton.contentEdgeInsets = UIEdgeInsets(top: 12, left: 20, bottom: 12, right: 20)
questionnaireButton.layer.cornerRadius = 15.0
questionnaireButton.layer.borderWidth = 2
questionnaireButton.layer.cornerRadius = 16.0
questionnaireButton.layer.borderWidth = 1
questionnaireButton.layer.borderColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00).cgColor
}
......@@ -743,6 +751,11 @@ import SwiftEventBus
swiftApi().openQuestionnaire(self);
}
@IBAction func historyButtonAction(_ sender: Any) {
// TODO: Open new HistoryVC
print("=== historyButton Pressed ===")
}
@IBAction func dfyEarnButtonAction(_ sender: Any) {
print("DFY coupon banner pressed!")
// analysis_pressed event
......