Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve QR code readability for different wallets #2804

Merged
merged 5 commits into from
Oct 10, 2023
Merged

Conversation

reneaaron
Copy link
Contributor

@reneaaron reneaaron commented Oct 9, 2023

Describe the changes you have made in this PR

  • Remove white background for dark mode
  • Selective error correction for lightning addresses (but not invoice QRs)
  • Remove lightning: prefix for lightning addresses QR code (consistent with what is displayed for invoices)
  • Improved sizing of QR codes for bigger screens
  • Deleted some custom code for the success message on the ReceiveInvoice screen and replaced it with our ResultCard

Test results with different readers:

Wallet Lightning Address Invoice
Bitkit
Blixt*
Blink
Breez*
BlueWallet*
Fedi
Muun
Phoenix
WoS

Legend

  • ❌ don't support Lightning Addresses
  • * don't support prefixed QR codes (lightning:)

Since some of the wallets don't seem to support prefixed QR codes at the moment (Blixt, Breez, BlueWallet for lightning addresses) I think it's better to remove the prefix for now at the cost of not being able to scan the QR codes with QR code readers or your camera app and being able to directly click a link (but having to copy & paste the contents of the QR code, or just directly scan it with your wallet).

@reneaaron reneaaron force-pushed the fix/qr-codes branch 2 times, most recently from 17b1706 to bfc1db4 Compare October 9, 2023 10:48
Copy link
Contributor

@rolznz rolznz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

@rolznz rolznz merged commit d95f4d4 into master Oct 10, 2023
5 of 6 checks passed
@rolznz rolznz deleted the fix/qr-codes branch October 10, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants