commit ab34b5caf47aac7bfd1c058014683a4791b5be79
parent 2ad04f756bd908076c1fbcf00f1c39dc0e3a385f
Author: Marc Stibane <marc@taler.net>
Date: Thu, 19 Dec 2024 22:58:21 +0100
cleanup
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Views/HelperViews/Buttons.swift b/TalerWallet1/Views/HelperViews/Buttons.swift
@@ -108,23 +108,23 @@ struct QRButton : View {
showCameraAlert = false
}
let scanText = String(localized: "Scan QR code", comment: "Button title, a11y")
- let qr = "qrcode.viewfinder"
- let qrImage = Text("\(Image(systemName: qr))", comment: "QR Image")
+ let qrImage = Image(systemName: QRBUTTON)
+ let qrText = Text("\(qrImage)", comment: "QR Image")
Button(action: checkCameraAvailable) {
if isNavBarItem {
if !minimalistic {
Text("Scan QR", comment: "Button title")
.talerFont(.title3)
}
- qrImage.talerFont(.title2)
+ qrText.talerFont(.title2)
} else if minimalistic {
let width = UIScreen.screenWidth / 7
- qrImage.talerFont(.largeTitle)
+ qrText.talerFont(.largeTitle)
.padding(.horizontal, width)
// .padding(.vertical)
} else {
HStack(spacing: 16) {
- qrImage.talerFont(.title)
+ qrText.talerFont(.title)
Text(scanText)
}.padding(.horizontal)
}