Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[IP-314] Provide visual feedback for "subscribe" buttons
- Loading branch information
Showing
with
8 additions
and
1 deletion.
-
+8
−1
Cliqz/Upgrade&Payment/View/SubscriptionTableViewCell.swift
|
|
@@ -7,6 +7,13 @@ |
|
|
// |
|
|
|
|
|
import UIKit |
|
|
class SubscribeButton: UIButton { |
|
|
override open var isHighlighted: Bool { |
|
|
didSet { |
|
|
backgroundColor = isHighlighted ? UIColor(colorString: "2557A5") : UIColor.lumenBrightBlue |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
class SubscriptionTableViewCell: UITableViewCell { |
|
|
let nameLabel = UILabel() |
|
|
@@ -17,7 +24,7 @@ class SubscriptionTableViewCell: UITableViewCell { |
|
|
let billingLabel = UILabel() |
|
|
let descriptionLabel = UILabel() |
|
|
let bestOfferLabel = UILabel() |
|
|
let subscribeButton = UIButton() |
|
|
let subscribeButton = SubscribeButton() |
|
|
let frameView = UIImageView() |
|
|
var isProCell: Bool = false |
|
|
var isBasicCell: Bool = false |
|
|
|