Manos Chorianopoulos

fix CouponBarcodeViewController btn ui

...@@ -78,10 +78,21 @@ import AVFoundation ...@@ -78,10 +78,21 @@ import AVFoundation
78 78
79 expirationLabel.text = "Το κουπόνι ισχύει έως " + (coupon?.expiration ?? "") 79 expirationLabel.text = "Το κουπόνι ισχύει έως " + (coupon?.expiration ?? "")
80 80
81 - redeemButton.titleLabel?.font = UIFont.systemFont(ofSize: 15, weight: .medium) 81 + redeemButton.titleLabel?.font = UIFont.systemFont(ofSize: 15, weight: .semibold)
82 + redeemButton.setTitle("Κάντο δώρο!", for: .normal)
83 + redeemButton.setTitleColor(.white, for: .normal)
84 + redeemButton.backgroundColor = UIColor(red: 0.47, green: 0.75, blue: 0.08, alpha: 1.00)
85 + redeemButton.layer.cornerRadius = 12.0
82 86
83 - termsButton.titleLabel?.font = .systemFont(ofSize: 15.0, weight: .semibold) 87 + termsButton.titleLabel?.font = .systemFont(ofSize: 15.0, weight: .medium)
84 // termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5) 88 // termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
89 + termsButton.setTitle("Όροι χρήσης", for: .normal)
90 + termsButton.setTitleColor(UIColor(red: 0.25, green: 0.33, blue: 0.39, alpha: 1.00), for: .normal)
91 + termsButton.setImage(UIImage(named: "ic_down_dark.png", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil), for: .normal)
92 + termsButton.semanticContentAttribute = .forceRightToLeft
93 + termsButton.tintColor = UIColor(red: 0.21, green: 0.32, blue: 0.41, alpha: 1.00)
94 + termsButton.imageEdgeInsets = UIEdgeInsets(top: 0, left: 5, bottom: 0, right: 0);
95 + termsButton.titleEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 5);
85 96
86 let htmlText = couponSetData?.terms ?? "" 97 let htmlText = couponSetData?.terms ?? ""
87 termsTextView.attributedText = htmlText.htmlToAttributedString 98 termsTextView.attributedText = htmlText.htmlToAttributedString
......
...@@ -1047,40 +1047,36 @@ ...@@ -1047,40 +1047,36 @@
1047 <nil key="highlightedColor"/> 1047 <nil key="highlightedColor"/>
1048 </label> 1048 </label>
1049 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8cR-Rc-YMJ"> 1049 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8cR-Rc-YMJ">
1050 - <rect key="frame" x="83" y="751" width="248" height="50"/> 1050 + <rect key="frame" x="83" y="751" width="248" height="40"/>
1051 <constraints> 1051 <constraints>
1052 - <constraint firstAttribute="height" constant="50" id="ccg-NP-FIH"/> 1052 + <constraint firstAttribute="height" constant="40" id="ccg-NP-FIH"/>
1053 </constraints> 1053 </constraints>
1054 - <state key="normal" title="Button"/> 1054 + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
1055 - <buttonConfiguration key="configuration" style="plain" title="Κάντο δώρο!"> 1055 + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
1056 - <backgroundConfiguration key="background" cornerRadius="12"> 1056 + <state key="normal" title="Κάντο δώρο!">
1057 - <color key="backgroundColor" red="0.47450980390000003" green="0.74901960779999999" blue="0.078431372550000003" alpha="0.84705882349999995" colorSpace="calibratedRGB"/> 1057 + <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
1058 - </backgroundConfiguration> 1058 + </state>
1059 - <fontDescription key="titleFontDescription" type="system" weight="medium" pointSize="15"/>
1060 - <color key="baseForegroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
1061 - </buttonConfiguration>
1062 <connections> 1059 <connections>
1063 <action selector="redeemButtomAction:" destination="CDt-eI-msA" eventType="touchUpInside" id="0pY-lD-17H"/> 1060 <action selector="redeemButtomAction:" destination="CDt-eI-msA" eventType="touchUpInside" id="0pY-lD-17H"/>
1064 </connections> 1061 </connections>
1065 </button> 1062 </button>
1066 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8UD-WL-JB7"> 1063 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8UD-WL-JB7">
1067 - <rect key="frame" x="103.5" y="811" width="207" height="50"/> 1064 + <rect key="frame" x="103.5" y="801" width="207" height="50"/>
1068 <constraints> 1065 <constraints>
1069 <constraint firstAttribute="height" constant="50" id="xdq-YS-AL4"/> 1066 <constraint firstAttribute="height" constant="50" id="xdq-YS-AL4"/>
1070 </constraints> 1067 </constraints>
1071 - <inset key="imageEdgeInsets" minX="5" minY="0.0" maxX="0.0" maxY="0.0"/> 1068 + <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="15"/>
1072 - <state key="normal" title="Button"/> 1069 + <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="5" maxY="0.0"/>
1073 - <buttonConfiguration key="configuration" style="plain" image="ic_down_dark" imagePlacement="trailing" title="Όροι χρήσης" imagePadding="5"> 1070 + <state key="normal" title="Όροι χρήσης" image="ic_down_dark">
1074 - <preferredSymbolConfiguration key="preferredSymbolConfigurationForImage"/> 1071 + <color key="titleColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" alpha="0.84705882349999995" colorSpace="calibratedRGB"/>
1075 - <fontDescription key="titleFontDescription" type="system" weight="semibold" pointSize="15"/> 1072 + <preferredSymbolConfiguration key="preferredSymbolConfiguration"/>
1076 - <color key="baseForegroundColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" alpha="0.84705882349999995" colorSpace="calibratedRGB"/> 1073 + </state>
1077 - </buttonConfiguration>
1078 <connections> 1074 <connections>
1079 <action selector="termsButtonAction:" destination="CDt-eI-msA" eventType="touchUpInside" id="zrs-az-yjI"/> 1075 <action selector="termsButtonAction:" destination="CDt-eI-msA" eventType="touchUpInside" id="zrs-az-yjI"/>
1080 </connections> 1076 </connections>
1081 </button> 1077 </button>
1082 <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" textAlignment="center" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xjX-HZ-MpD"> 1078 <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" textAlignment="center" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xjX-HZ-MpD">
1083 - <rect key="frame" x="20" y="871" width="374" height="0.0"/> 1079 + <rect key="frame" x="20" y="861" width="374" height="0.0"/>
1084 <color key="backgroundColor" systemColor="systemBackgroundColor"/> 1080 <color key="backgroundColor" systemColor="systemBackgroundColor"/>
1085 <constraints> 1081 <constraints>
1086 <constraint firstAttribute="height" id="3GU-tg-S3t"/> 1082 <constraint firstAttribute="height" id="3GU-tg-S3t"/>
......