File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
WooCommerce/Classes/POS/Presentation/Reusable Views Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -11,25 +11,26 @@ struct POSItemImageView: View {
1111 ProductImageThumbnail ( productImageURL: URL ( string: imageSource) ,
1212 productImageSize: imageSize,
1313 scale: scale,
14- foregroundColor: Constants . placeholderColor ,
14+ foregroundColor: Constants . placeholderIconColor ,
1515 cachesOriginalImage: true )
1616 } else {
1717 Rectangle ( )
18- . foregroundColor ( . posSurfaceContainerLowest )
18+ . foregroundColor ( Constants . placeholderBackgroundColor )
1919 . overlay {
2020 Image ( systemName: " archivebox " )
2121 . resizable ( )
22- . frame ( width: Constants . placeholderDimension , height: Constants . placeholderDimension )
23- . foregroundColor ( Constants . placeholderColor )
22+ . frame ( width: Constants . placeholderIconDimension , height: Constants . placeholderIconDimension )
23+ . foregroundColor ( Constants . placeholderIconColor )
2424 }
2525 }
2626 }
2727}
2828
2929private extension POSItemImageView {
3030 enum Constants {
31- static let placeholderDimension : CGFloat = 48
32- static let placeholderColor : Color = . posOnDisabledContainer
31+ static let placeholderIconDimension : CGFloat = 38
32+ static let placeholderIconColor : Color = . posOnSurfaceVariantLowest
33+ static let placeholderBackgroundColor : Color = . posSurfaceDim
3334 }
3435}
3536
You can’t perform that action at this time.
0 commit comments