11import Foundation
22import UIKit
3+ import Gridicons
34import Cosmos
45
56
@@ -134,12 +135,10 @@ private extension NoteTableViewCell {
134135 starView. accessibilityLabel = NSLocalizedString ( " Star rating " , comment: " VoiceOver accessibility label for a product review star rating " )
135136 starView. settings. updateOnTouch = false
136137 starView. settings. fillMode = . full
137- starView. settings. starSize = Constants . starSize
138- starView. settings. starMargin = Constants . starMargin
139- starView. settings. filledColor = StyleManager . defaultTextColor
140- starView. settings. filledBorderColor = StyleManager . defaultTextColor
141- starView. settings. emptyColor = . clear
142- starView. settings. emptyBorderColor = . clear
138+ starView. settings. starSize = Star . size
139+ starView. settings. starMargin = Star . margin
140+ starView. settings. filledImage = Star . filledImage
141+ starView. settings. emptyImage = Star . emptyImage
143142 starViewContainer. isHidden = ( starRating == nil )
144143 }
145144}
@@ -148,8 +147,11 @@ private extension NoteTableViewCell {
148147// MARK: - Constants!
149148//
150149private extension NoteTableViewCell {
151- enum Constants {
152- static let starSize = Double ( 13 )
153- static let starMargin = Double ( 0 )
150+
151+ enum Star {
152+ static let size = Double ( 13 )
153+ static let margin = Double ( 0 )
154+ static let filledImage = Gridicon . iconOfType ( . star, withSize: CGSize ( width: Star . size, height: Star . size) ) . imageWithTintColor ( StyleManager . defaultTextColor)
155+ static let emptyImage = Gridicon . iconOfType ( . star, withSize: CGSize ( width: Star . size, height: Star . size) ) . imageWithTintColor ( . clear)
154156 }
155157}
0 commit comments