fix: Use new image in main menu
Resolves: https://gitlab.steamware.net/eqn/eqn.ios/-/issues/12
This commit is contained in:
@@ -10,6 +10,7 @@ import UIKit
|
||||
|
||||
class MenuHeaderTableViewCell: UITableViewCell {
|
||||
|
||||
@IBOutlet weak var appIconImageView: UIImageView!
|
||||
@IBOutlet weak var appVersionLabel: UILabel!
|
||||
@IBOutlet weak var appIdLabel: UILabel!
|
||||
|
||||
@@ -20,7 +21,7 @@ class MenuHeaderTableViewCell: UITableViewCell {
|
||||
|
||||
// add a gradient for the background
|
||||
let gradient = CAGradientLayer()
|
||||
let blueColor = UIColor(red: 0.47, green: 0.72, blue: 0.98, alpha: 1.0)
|
||||
let blueColor = UIColor(red: 131.0/255.0, green: 200.0/255.0, blue: 255.0/255.0, alpha: 1.0)
|
||||
gradient.frame = bounds
|
||||
gradient.colors = [ blueColor.cgColor, UIColor.white.cgColor ]
|
||||
layer.insertSublayer(gradient, at: 0)
|
||||
@@ -36,5 +37,8 @@ class MenuHeaderTableViewCell: UITableViewCell {
|
||||
|
||||
let userId = EQNUser.default().user_ID ?? "n.d."
|
||||
appIdLabel.text = "ID: \(userId)"
|
||||
|
||||
let image = EQNPurchaseUtility.isProVersionEnabled() ? UIImage(named: "eq_icon_pro")! : UIImage(named: "eq_icon")!
|
||||
appIconImageView.image = image
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
</tableViewCellContentView>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<outlet property="appIconImageView" destination="GsY-wf-MH4" id="J6K-KM-flY"/>
|
||||
<outlet property="appIdLabel" destination="j4G-Ck-LqX" id="deq-7c-3yB"/>
|
||||
<outlet property="appVersionLabel" destination="giY-Wc-DhN" id="Q4a-4m-lMG"/>
|
||||
</connections>
|
||||
|
||||
Reference in New Issue
Block a user