keystone enroll: Invert the QR colours

This commit is contained in:
Jack Grigg 2024-12-12 19:00:31 +00:00
parent 344c30d8ab
commit e5e4ef1fca
1 changed files with 4 additions and 4 deletions

View File

@ -85,12 +85,12 @@ impl Enroll {
let ur = encoder let ur = encoder
.next_part() .next_part()
.map_err(|e| anyhow!("Failed to encode PCZT part: {e}"))?; .map_err(|e| anyhow!("Failed to encode PCZT part: {e}"))?;
let code = QrCode::new(&ur.to_uppercase())?; let code = QrCode::new(ur.to_uppercase())?;
let string = code let string = code
.render::<unicode::Dense1x2>() .render::<unicode::Dense1x2>()
.dark_color(unicode::Dense1x2::Dark) .dark_color(unicode::Dense1x2::Light)
.light_color(unicode::Dense1x2::Light) .light_color(unicode::Dense1x2::Dark)
.quiet_zone(false) .quiet_zone(true)
.build(); .build();
stdout.write_all(format!("{string}\n").as_bytes()).await?; stdout.write_all(format!("{string}\n").as_bytes()).await?;