SFT-4353: adjusted casa icon alginment in card headers
What changed, and why it matters
This commit is a purely cosmetic UI tweak. It nudges the Casa logo down by one pixel in card headers on color-screen Passport devices so it lines up better visually. There is no security relevance.
No security action needed; treat as routine UI polish.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adds two conditional style rules in card.py: when the card header icon (left or right) is ICON_CASA and the device is a color model (passport.IS_COLOR), a 1-pixel top padding is applied to adjust vertical alignment. The diff only touches alignment/padding of a single icon asset and does not alter input handling, cryptography, authentication, memory safety, or any security-sensitive logic.
Changed components
ports/stm32/boards/Passport/modules/views/card.pyInspect captured patch +4 / −0
diff --git a/ports/stm32/boards/Passport/modules/views/card.py b/ports/stm32/boards/Passport/modules/views/card.py
index 9960a84..d7824e6 100644
--- a/ports/stm32/boards/Passport/modules/views/card.py
+++ b/ports/stm32/boards/Passport/modules/views/card.py
@@ -206,6 +206,8 @@ class Card(View):
self.icon_view = Image(icon, color=self.header_fg_color)
with Stylize(self.icon_view) as default:
default.align(lv.ALIGN.LEFT_MID)
+ if self.icon == 'ICON_CASA' and passport.IS_COLOR:
+ default.pad(top=1)
self.header.add_child(self.icon_view)
header_title = Label(text=self.title, color=self.header_fg_color, long_mode=lv.label.LONG.SCROLL_CIRCULAR)
@@ -220,6 +222,8 @@ class Card(View):
self.right_icon_view = Image(right_icon, color=self.header_fg_color)
with Stylize(self.right_icon_view) as default:
default.align(lv.ALIGN.RIGHT_MID)
+ if self.right_icon == 'ICON_CASA' and passport.IS_COLOR:
+ default.pad(top=1)
self.header.add_child(self.right_icon_view)
# Only draw right text if there is no right icon
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.