fix(gui-plugins): keep the pairing QR code dark on light in every theme (#63220)

Co-authored-by: ssskay <ssskay@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sara Kay
2026-11-12 16:24:52 -06:00
committed by GitHub
Unverified
parent f179e6e5f0
commit aed4cbc024
+4 -2
View File
@@ -373,7 +373,9 @@ function DialogPairing(props: {
if (!value) return
return renderSVG(value, { border: 4, blackColor: "currentColor", whiteColor: "transparent" })
// Scanners expect dark modules on a light quiet zone, so the code keeps black on white in every theme. Following
// the theme drew light modules on a dark background, which the Android app's scanner can't read.
return renderSVG(value, { border: 4 })
})
// The QR code's frame, which also holds the setup progress and its failure, so the dialog keeps its size.
@@ -391,7 +393,7 @@ function DialogPairing(props: {
{(current) => (
<>
<div
class={`${frame} bg-v2-background-bg-base p-6 text-v2-text-text-base [&>svg]:size-full`}
class={`${frame} bg-v2-background-bg-base p-6 [&>svg]:size-full`}
role="img"
aria-label={ctx.t("qr")}
innerHTML={qr()}