feat(core): adjust wireless setup QR code
What changed, and why it matters
This commit simply updates the QR code shown during wireless device setup so it points to the correct web link (trezor.io/setup/ts7) and slightly adjusts the surrounding padding. There is no security issue here.
No security action required; this is a benign UI asset and layout update.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change swaps bootloader QR code assets and renames the embedded icon constant from ICON_QR_TREZOR_IO_START to ICON_QR_TREZOR_IO_SETUP. The Rust rendering code now loads the new asset and reduces the visual padding around the QR code from 20 pixels to 11 pixels. No cryptographic, network, or trust-boundary code is touched.
Changed components
core/embed/rust/src/ui/layout_eckhart/bootloader/wireless_setup_screen.rscore/embed/rust/src/ui/layout_eckhart/theme/bootloader.rscore/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode*.png/toif assetsInspect captured patch +6 / −7
diff --git a/core/embed/rust/src/ui/layout_eckhart/bootloader/wireless_setup_screen.rs b/core/embed/rust/src/ui/layout_eckhart/bootloader/wireless_setup_screen.rs
index 92161dec..0af78f66 100644
--- a/core/embed/rust/src/ui/layout_eckhart/bootloader/wireless_setup_screen.rs
+++ b/core/embed/rust/src/ui/layout_eckhart/bootloader/wireless_setup_screen.rs
@@ -83,12 +83,11 @@ impl WirelessSetupScreen {
return;
}
- let qr_code_size = theme::bootloader::ICON_QR_TREZOR_IO_START.toif.width();
- let padding = 20;
- let qr_code_pad_size = qr_code_size + padding;
+ let qr_code_size = theme::bootloader::ICON_QR_TREZOR_IO_SETUP.toif.width();
+ let qr_code_pad_width = 11;
let pad_area = Rect::snap(
self.qr_area.center(),
- Offset::new(qr_code_pad_size, qr_code_pad_size),
+ Offset::uniform(qr_code_size + qr_code_pad_width),
Alignment2D::CENTER,
);
@@ -99,7 +98,7 @@ impl WirelessSetupScreen {
.render(target);
shape::ToifImage::new(
pad_area.center(),
- theme::bootloader::ICON_QR_TREZOR_IO_START.toif,
+ theme::bootloader::ICON_QR_TREZOR_IO_SETUP.toif,
)
.with_align(Alignment2D::CENTER)
.with_fg(theme::WHITE)
diff --git a/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode.png b/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode.png
deleted file mode 100644
index c0238680..00000000
Binary files a/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode.png and /dev/null differ
diff --git a/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode.toif b/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode.toif
deleted file mode 100644
index 53cebe1e..00000000
Binary files a/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode.toif and /dev/null differ
diff --git a/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_170.png b/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_170.png
new file mode 100644
index 00000000..35774f6f
Binary files /dev/null and b/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_170.png differ
diff --git a/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_170.toif b/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_170.toif
new file mode 100644
index 00000000..131763f7
Binary files /dev/null and b/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_170.toif differ
diff --git a/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_smaller.png b/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_smaller.png
deleted file mode 100644
index 4f1122b3..00000000
Binary files a/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_smaller.png and /dev/null differ
diff --git a/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_smaller.toif b/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_smaller.toif
deleted file mode 100644
index 41e99d63..00000000
Binary files a/core/embed/rust/src/ui/layout_eckhart/res/bootloader/QRCode_smaller.toif and /dev/null differ
diff --git a/core/embed/rust/src/ui/layout_eckhart/theme/bootloader.rs b/core/embed/rust/src/ui/layout_eckhart/theme/bootloader.rs
index e40aec42..f13f54fa 100644
--- a/core/embed/rust/src/ui/layout_eckhart/theme/bootloader.rs
+++ b/core/embed/rust/src/ui/layout_eckhart/theme/bootloader.rs
@@ -21,8 +21,8 @@ pub const WELCOME_COLOR: Color = BLACK;
// UI icons specific to bootloader (white color)
include_icon!(ICON_SEVEN, "layout_eckhart/res/bootloader/7.toif");
include_icon!(
- ICON_QR_TREZOR_IO_START,
- "layout_eckhart/res/bootloader/QRCode.toif"
+ ICON_QR_TREZOR_IO_SETUP,
+ "layout_eckhart/res/bootloader/QRCode_170.toif"
);
pub const fn button_default() -> ButtonStyleSheet {
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.