Skip to content

Commit 6314064

Browse files
committed
Update image placeholder foreground and background colors based on the latest design.
1 parent 2c8401b commit 6314064

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

WooCommerce/Classes/POS/Presentation/Reusable Views/POSItemImageView.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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

2929
private 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

0 commit comments

Comments
 (0)