File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -112,13 +112,27 @@ extension HubMenuViewModel {
112112 var icon : UIImage {
113113 switch self {
114114 case . woocommerceAdmin:
115- return . wordPressLogoImage. imageWithTintColor ( . blue ) ?? . wordPressLogoImage
115+ return . wordPressLogoImage
116116 case . viewStore:
117- return . storeImage. imageWithTintColor ( . accent ) ?? . storeImage
117+ return . storeImage
118118 case . coupons:
119119 return . couponImage
120120 case . reviews:
121- return . starImage( size: 24.0 ) . imageWithTintColor ( . primary) ?? . starImage( size: 24.0 )
121+ return . starImage( size: 24.0 )
122+ }
123+ }
124+
125+ var iconColor : UIColor {
126+ switch self {
127+ case . woocommerceAdmin:
128+ return . blue
129+ case . viewStore:
130+ return . accent
131+ case . coupons:
132+ return UIColor ( light: . withColorStudio( . green, shade: . shade30) ,
133+ dark: . withColorStudio( . green, shade: . shade50) )
134+ case . reviews:
135+ return . primary
122136 }
123137 }
124138 }
You can’t perform that action at this time.
0 commit comments