keystone enroll: Invert the QR colours
This commit is contained in:
parent
344c30d8ab
commit
e5e4ef1fca
|
@ -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?;
|
||||||
|
|
Loading…
Reference in New Issue