Skip to content

fix: Dynamically decide QR code box background/fill colors#2480

Merged
neilv-g merged 1 commit into
mainfrom
neilv-qr-fix
May 13, 2026
Merged

fix: Dynamically decide QR code box background/fill colors#2480
neilv-g merged 1 commit into
mainfrom
neilv-qr-fix

Conversation

@neilv-g
Copy link
Copy Markdown
Collaborator

@neilv-g neilv-g commented May 13, 2026

The current QR codes surprisingly can't be scanned by Pixel phones (but works on iPhones surprisingly) due to the corner boxes (which the camera uses for alignment when scanning QR codes) not being present. And the boxes aren't present because of currently inverted values for the QR code's fill/background values.

This change makes it so the website correctly decides the fill/background color for the QR code depending on whether the user is in light/dark mode. And as a result, the corner boxes are always present.

Before (where light mode does NOT work on Pixels but dark mode DOES):
Screenshot 2026-05-13 at 10 35 10 AM
Screenshot 2026-05-13 at 10 34 59 AM

After (light mode changed, dark mode stays the same):
Screenshot 2026-05-13 at 10 18 08 AM
Screenshot 2026-05-13 at 10 18 01 AM

The current QR codes surprisingly can't be scanned by Pixel phones (but works on iPhones surprisingly) due to the corner boxes (which the camera uses for alignment when scanning QR codes) not being present.
And the boxes aren't present because of currently inverted values for the QR code's fill/background values.

This change makes it so the website correctly decides the fill/background color for the QR code depending on whether the user is in light/dark mode.
And as a result, the corner boxes are always present.
@neilv-g neilv-g requested a review from jrobbins May 13, 2026 06:27
@neilv-g neilv-g added this pull request to the merge queue May 13, 2026
Merged via the queue into main with commit 01e0c3a May 13, 2026
8 checks passed
@neilv-g neilv-g deleted the neilv-qr-fix branch May 13, 2026 18:41
@neilv-g neilv-g mentioned this pull request May 13, 2026
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.

2 participants