Skip to content

Explicit white backgrounds for QR codes #15

Open

Description

@knghtbrd

Hi, just thought you might want to make the white backgrounds on your QR codes explicitly white:

image

This nice dark Github theme is an override CSS, true, ("GithubDarkTheme();" specifically) but it's very well behaved and if MS ever implements one, they're likely to do it similarly. This is just one of those cases where you don't really want an alpha background.

Activity

  1. tutacat commented on Mar 21, 2021

    @tutacat

    or have it as an jpg/opaque png

    😂 ms wouldn't enable force dark mode by default, mostly because of compatibility like that

    Also, force dark mode (chromium) replaces even white explicit background with opposite color

  2. knghtbrd commented on Aug 18, 2021

    @knghtbrd
    Author

    Definitely reason to test with multiple browsers. Chrome's "force dark mode", if it now uses the stuff Brave does (which was probably a Chrome experimental feature) is sort of an in-browser darkreader extension. That's guaranteed to break things sooner or later just because it's indiscriminate. Mostly yes, the background should not be transparent. Or at least there should be a white background under it that maybe fuzzes at the edges to pure alpha.

  3. whoa220 commented on Jul 13, 2026

    @whoa220

    Maybe it could work like this, Have to make a pull request for it tho.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions