Skip to content

Improve QR code visibility#3040

Open
mikovskii wants to merge 3 commits into
deltachat:mainfrom
mikovskii:issue-2989
Open

Improve QR code visibility#3040
mikovskii wants to merge 3 commits into
deltachat:mainfrom
mikovskii:issue-2989

Conversation

@mikovskii

Copy link
Copy Markdown
Contributor

QR codes are now easier to scan because the app temporarily turns the screen brightness up while they are shown, then restores the previous brightness when you leave the screen or the app goes to the background.

This also updates backup QR rendering ( #2989 )

demo ( for new qr backup):

Details Screenshot 2026-03-04 at 8 22 46 PM

close: #2989

- temporarily raise screen brightness while QR codes are visible
- restore the previous brightness when leaving the screen or app
backgrounds
- generate backup QR images from the QR payload instead of using
provider SVG
- remove the unused backup QR SVG wrapper
@mikovskii
mikovskii marked this pull request as ready for review March 4, 2026 17:50
@Amzd

Amzd commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

I am a bit hesitant to merge this right now because I feel like it would be much nicer if we could use EDR just on the QR view, instead of needing to keep track of viewWillAppear/viewWillDisappear. I haven't tested if that even produces a similar brightness but seems like it does: https://github.com/tsuzukihashi/EDR_Swift

@mikovskii

Copy link
Copy Markdown
Contributor Author

I'll test it out and try to implement it using an ERD. I looked at how it's implemented in Signal and Telegram. They use an approach similar to mine. But I'll still give the ERD a try.

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.

better scannable "Add Second Device" QR code

2 participants