Skip to content

Commit 80faa66

Browse files
committed
Update barcode view styling and size for better barcode scanability in dark mode
Added medium padding and rounded corners to the barcode image for improved UI. Increased the maximum barcode size from 142 to 168 for better visibility.
1 parent 039b67e commit 80faa66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WooCommerce/Classes/POS/Presentation/Barcode Scanner Setup/PointOfSaleBarcodeScannerSetupStepViews.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ struct PointOfSaleBarcodeScannerBarcodeView: View {
4141
.resizable()
4242
.aspectRatio(contentMode: .fit)
4343
.frame(maxHeight: Constants.maxBarcodeSize)
44+
.padding(POSPadding.medium)
4445
.background(Color.white)
46+
.clipShape(RoundedRectangle(cornerRadius: POSCornerRadiusStyle.medium.value))
4547
}
4648
}
4749
}
4850

4951
extension PointOfSaleBarcodeScannerBarcodeView {
5052
enum Constants {
51-
static let maxBarcodeSize: CGFloat = 142
53+
static let maxBarcodeSize: CGFloat = 168
5254
}
5355
}
5456

0 commit comments

Comments
 (0)