Showing
4 changed files
with
23 additions
and
16 deletions
No preview for this file type
No preview for this file type
... | @@ -50,10 +50,21 @@ import UIKit | ... | @@ -50,10 +50,21 @@ import UIKit |
50 | nameLabel.text = couponset?.name ?? "" | 50 | nameLabel.text = couponset?.name ?? "" |
51 | descriptionLabel.text = couponset?.short_description ?? "" | 51 | descriptionLabel.text = couponset?.short_description ?? "" |
52 | 52 | ||
53 | - redeemButton.titleLabel?.font = UIFont.systemFont(ofSize: 15, weight: .medium) | 53 | + redeemButton.titleLabel?.font = UIFont.systemFont(ofSize: 15, weight: .semibold) |
54 | + redeemButton.setTitle("Απόκτησέ το", for: .normal) | ||
55 | + redeemButton.setTitleColor(.white, for: .normal) | ||
56 | + redeemButton.backgroundColor = UIColor(red: 0.47, green: 0.75, blue: 0.08, alpha: 1.00) | ||
57 | + redeemButton.layer.cornerRadius = 12.0 | ||
54 | 58 | ||
55 | termsButton.titleLabel?.font = .systemFont(ofSize: 15.0, weight: .semibold) | 59 | termsButton.titleLabel?.font = .systemFont(ofSize: 15.0, weight: .semibold) |
56 | // termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5) | 60 | // termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5) |
61 | + termsButton.setTitle("Όροι χρήσης", for: .normal) | ||
62 | + termsButton.setTitleColor(UIColor(red: 0.25, green: 0.33, blue: 0.39, alpha: 1.00), for: .normal) | ||
63 | + termsButton.setImage(UIImage(named: "ic_down_dark.png"), for: .normal) | ||
64 | + termsButton.semanticContentAttribute = .forceRightToLeft | ||
65 | + termsButton.tintColor = UIColor(red: 0.21, green: 0.32, blue: 0.41, alpha: 1.00) | ||
66 | + termsButton.imageEdgeInsets = UIEdgeInsets(top: 0, left: 5, bottom: 0, right: 0); | ||
67 | + termsButton.titleEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 5); | ||
57 | 68 | ||
58 | let htmlText = couponset?.terms ?? "" | 69 | let htmlText = couponset?.terms ?? "" |
59 | termsTextView.attributedText = htmlText.htmlToAttributedString | 70 | termsTextView.attributedText = htmlText.htmlToAttributedString | ... | ... |
... | @@ -1237,14 +1237,11 @@ | ... | @@ -1237,14 +1237,11 @@ |
1237 | <constraints> | 1237 | <constraints> |
1238 | <constraint firstAttribute="height" constant="50" id="n2w-Tx-hhO"/> | 1238 | <constraint firstAttribute="height" constant="50" id="n2w-Tx-hhO"/> |
1239 | </constraints> | 1239 | </constraints> |
1240 | - <state key="normal" title="Button"/> | 1240 | + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/> |
1241 | - <buttonConfiguration key="configuration" style="plain" title="Απόκτησέ το"> | 1241 | + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> |
1242 | - <backgroundConfiguration key="background" cornerRadius="12"> | 1242 | + <state key="normal" title="Απόκτησέ το"> |
1243 | - <color key="backgroundColor" red="0.47450980390000003" green="0.74901960779999999" blue="0.078431372550000003" alpha="0.84705882349999995" colorSpace="calibratedRGB"/> | 1243 | + <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
1244 | - </backgroundConfiguration> | 1244 | + </state> |
1245 | - <fontDescription key="titleFontDescription" type="system" weight="medium" pointSize="15"/> | ||
1246 | - <color key="baseForegroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
1247 | - </buttonConfiguration> | ||
1248 | <connections> | 1245 | <connections> |
1249 | <action selector="redeemButtomAction:" destination="S8k-2D-tGT" eventType="touchUpInside" id="W1u-Fc-1nm"/> | 1246 | <action selector="redeemButtomAction:" destination="S8k-2D-tGT" eventType="touchUpInside" id="W1u-Fc-1nm"/> |
1250 | </connections> | 1247 | </connections> |
... | @@ -1254,13 +1251,12 @@ | ... | @@ -1254,13 +1251,12 @@ |
1254 | <constraints> | 1251 | <constraints> |
1255 | <constraint firstAttribute="height" constant="50" id="O7T-ug-rTB"/> | 1252 | <constraint firstAttribute="height" constant="50" id="O7T-ug-rTB"/> |
1256 | </constraints> | 1253 | </constraints> |
1257 | - <inset key="imageEdgeInsets" minX="5" minY="0.0" maxX="0.0" maxY="0.0"/> | 1254 | + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="15"/> |
1258 | - <state key="normal" title="Button"/> | 1255 | + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="5" maxY="0.0"/> |
1259 | - <buttonConfiguration key="configuration" style="plain" image="ic_down_dark" imagePlacement="trailing" title="Όροι χρήσης" imagePadding="5"> | 1256 | + <state key="normal" title="Όροι χρήσης" image="ic_down_dark"> |
1260 | - <preferredSymbolConfiguration key="preferredSymbolConfigurationForImage"/> | 1257 | + <color key="titleColor" red="0.25490196078431371" green="0.33333333333333331" blue="0.39215686274509803" alpha="0.84705882349999995" colorSpace="calibratedRGB"/> |
1261 | - <fontDescription key="titleFontDescription" type="system" weight="semibold" pointSize="15"/> | 1258 | + <preferredSymbolConfiguration key="preferredSymbolConfiguration"/> |
1262 | - <color key="baseForegroundColor" red="0.25490196078431371" green="0.33333333333333331" blue="0.39215686274509803" alpha="0.84705882349999995" colorSpace="calibratedRGB"/> | 1259 | + </state> |
1263 | - </buttonConfiguration> | ||
1264 | <connections> | 1260 | <connections> |
1265 | <action selector="termsButtonAction:" destination="S8k-2D-tGT" eventType="touchUpInside" id="Cdz-mV-gqb"/> | 1261 | <action selector="termsButtonAction:" destination="S8k-2D-tGT" eventType="touchUpInside" id="Cdz-mV-gqb"/> |
1266 | </connections> | 1262 | </connections> | ... | ... |
-
Please register or login to post a comment