forked from organicmaps/organicmaps
[MAPSME-5831] Fixed place page rating coloring.
This commit is contained in:
parent
07fa42caa2
commit
2b451e656e
2 changed files with 8 additions and 7 deletions
|
@ -38,7 +38,7 @@
|
|||
<constraint firstAttribute="width" secondItem="D4Q-0A-Efb" secondAttribute="height" multiplier="1:1" id="bUS-re-59E"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackDividers"/>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackOpaque"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
|
||||
<integer key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
|
@ -90,7 +90,7 @@
|
|||
<constraint firstAttribute="width" secondItem="ZfD-kJ-Q3m" secondAttribute="height" multiplier="1:1" id="z0R-9P-1b6"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackDividers"/>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackOpaque"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
|
||||
<integer key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
|
@ -143,7 +143,7 @@
|
|||
<constraint firstAttribute="width" secondItem="3W8-Mg-bTw" secondAttribute="height" multiplier="1:1" id="qaN-7W-Yvj"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackDividers"/>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackOpaque"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
|
||||
<integer key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
|
@ -191,7 +191,7 @@
|
|||
<constraint firstAttribute="width" secondItem="lPm-nd-4qs" secondAttribute="height" multiplier="1:1" id="ROk-bX-OdS"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackDividers"/>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackOpaque"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
|
||||
<integer key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
|
@ -244,7 +244,7 @@
|
|||
<constraint firstAttribute="width" secondItem="U5X-iD-KyI" secondAttribute="height" multiplier="1:1" id="XZ1-91-XOt"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackDividers"/>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackOpaque"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
|
||||
<integer key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
|
|
|
@ -28,11 +28,12 @@ final class PPPReview: MWMTableViewCell {
|
|||
@objc func config(rating: UGCRatingValueType, canAddReview: Bool, reviewsCount: UInt, priceSetter: (UILabel) -> Void, onAddReview: @escaping () -> Void) {
|
||||
self.onAddReview = onAddReview
|
||||
ratingSummaryView.textFont = UIFont.bold12()
|
||||
ratingSummaryView.value = rating.value
|
||||
ratingSummaryView.type = rating.type
|
||||
ratingSummaryView.backgroundOpacity = 0.05
|
||||
addReviewButton.isHidden = true
|
||||
pricingLabel.isHidden = true
|
||||
reviewsLabel.isHidden = false
|
||||
ratingSummaryView.value = rating.value
|
||||
ratingSummaryView.type = rating.type
|
||||
if rating.type == .noValue {
|
||||
if canAddReview {
|
||||
ratingSummaryView.noValueImage = #imageLiteral(resourceName: "ic_12px_rating_normal")
|
||||
|
|
Loading…
Add table
Reference in a new issue