Use dark-on-light for QR code rendering.

This commit is contained in:
Kris Nuttycombe 2024-12-12 10:58:18 -07:00
parent c532ea0fc8
commit fe65d3f12c
1 changed files with 3 additions and 3 deletions

View File

@ -63,9 +63,9 @@ impl Send {
let code = QrCode::new(&ur.to_ascii_uppercase())?;
let string = code
.render::<unicode::Dense1x2>()
.dark_color(unicode::Dense1x2::Dark)
.light_color(unicode::Dense1x2::Light)
.quiet_zone(false)
.dark_color(unicode::Dense1x2::Light)
.light_color(unicode::Dense1x2::Dark)
.quiet_zone(true)
.build();
stdout.write_all(format!("{string}\n").as_bytes()).await?;