What changed, and why it matters
This commit simply replaces the Casa logo/icon artwork used in the Passport firmware's user interface. It updates both color and black-and-white versions of the icon and adjusts the image format from 2-bit indexed color to 1-bit indexed color for the monochrome variant. There is no security-relevant change.
No security action needed. Treat as a routine asset/branding update.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit updates LVGL image assets for ICON_CASA. It regenerates the C array bitmap data and PNG source files for the color and mono variants, changes the SPDX copyright year to 2024, and switches the mono variant from LV_IMG_CF_INDEXED_2BIT to LV_IMG_CF_INDEXED_1BIT with a corresponding reduction in data_size. A blank line is also removed from ICON_HOURGLASS.c. No code logic, parsing routines, bounds checks, or security controls are modified.
Changed components
ports/stm32/boards/Passport/images/color/ICON_CASA.cports/stm32/boards/Passport/images/color/ICON_CASA__CF_INDEXED_2_BIT.pngports/stm32/boards/Passport/images/color/ICON_HOURGLASS.cports/stm32/boards/Passport/images/mono/ICON_CASA.cports/stm32/boards/Passport/images/mono/ICON_CASA__CF_INDEXED_1_BIT.pngports/stm32/boards/Passport/images/mono/ICON_CASA__CF_INDEXED_2_BIT.pngInspect captured patch +51 / −53
diff --git a/ports/stm32/boards/Passport/images/color/ICON_CASA.c b/ports/stm32/boards/Passport/images/color/ICON_CASA.c
index c7c46dc..a29ffe7 100644
--- a/ports/stm32/boards/Passport/images/color/ICON_CASA.c
+++ b/ports/stm32/boards/Passport/images/color/ICON_CASA.c
@@ -1,4 +1,4 @@
-// SPDX-FileCopyrightText: © 2022 Foundation Devices, Inc. <hello@foundationdevices.com>
+// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <hello@foundationdevices.com>
// SPDX-License-Identifier: GPL-3.0-or-later
//
@@ -14,32 +14,33 @@
#ifndef LV_ATTRIBUTE_IMG_ICON_CASA
#define LV_ATTRIBUTE_IMG_ICON_CASA
#endif
+
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_IMG_ICON_CASA uint8_t ICON_CASA_map[] = {
- 0x00, 0x00, 0x00, 0x00, /*Color of index 0*/
- 0xfe, 0xfe, 0xfe, 0x36, /*Color of index 1*/
- 0xfe, 0xfe, 0xfe, 0xbe, /*Color of index 2*/
- 0xfe, 0xfe, 0xfe, 0xfd, /*Color of index 3*/
+ 0x00, 0x00, 0x00, 0x02, /*Color of index 0*/
+ 0x00, 0x00, 0x00, 0x54, /*Color of index 1*/
+ 0x00, 0x00, 0x00, 0xa0, /*Color of index 2*/
+ 0x00, 0x00, 0x00, 0xf2, /*Color of index 3*/
- 0xbf, 0xff, 0xff, 0xff, 0xfe,
- 0xff, 0xff, 0xff, 0xff, 0xff,
- 0xff, 0xff, 0xff, 0xeb, 0xff,
- 0xff, 0xff, 0xf9, 0x41, 0x6f,
- 0xff, 0xff, 0xd0, 0x00, 0x07,
- 0xff, 0xff, 0x41, 0x69, 0x41,
- 0xff, 0xfe, 0x06, 0xff, 0x90,
- 0xff, 0xfd, 0x1b, 0xff, 0xe5,
- 0xff, 0xf9, 0x1f, 0xff, 0xff,
- 0xff, 0xfc, 0x1f, 0xff, 0xff,
- 0xff, 0xf8, 0x1f, 0xff, 0xff,
- 0xff, 0xfd, 0x1f, 0xff, 0xff,
- 0xff, 0xfd, 0x1b, 0xff, 0xe5,
- 0xff, 0xfe, 0x06, 0xff, 0x90,
- 0xff, 0xff, 0x41, 0x69, 0x41,
- 0xff, 0xff, 0xd0, 0x00, 0x07,
- 0xff, 0xff, 0xf9, 0x41, 0x6f,
- 0xff, 0xff, 0xff, 0xaa, 0xff,
- 0xff, 0xff, 0xff, 0xff, 0xff,
- 0xbf, 0xff, 0xff, 0xff, 0xfe,
+ 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x38, 0x00, 0x00,
+ 0x00, 0x01, 0xff, 0x40, 0x00,
+ 0x00, 0x0f, 0xd7, 0xe0, 0x00,
+ 0x00, 0x7f, 0x00, 0xfd, 0x00,
+ 0x02, 0xf4, 0x00, 0x1f, 0x80,
+ 0x0b, 0xd0, 0xbe, 0x03, 0xe0,
+ 0x3f, 0x03, 0xff, 0xd0, 0xfc,
+ 0x2c, 0x0f, 0x41, 0xf8, 0x28,
+ 0x2d, 0x1e, 0x00, 0x3e, 0x04,
+ 0x1e, 0x1d, 0x00, 0x0b, 0xc0,
+ 0x0f, 0x1e, 0x00, 0x42, 0xf0,
+ 0x0b, 0x4f, 0x41, 0xe1, 0xe0,
+ 0x07, 0x83, 0xff, 0xd2, 0xd0,
+ 0x03, 0xc0, 0xae, 0x03, 0xc0,
+ 0x02, 0xd0, 0x00, 0x07, 0x80,
+ 0x01, 0xe9, 0x55, 0x5b, 0x40,
+ 0x00, 0xff, 0xff, 0xff, 0x00,
+ 0x00, 0x15, 0x55, 0x54, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00,
};
const lv_img_dsc_t ICON_CASA = {
@@ -48,6 +49,6 @@ const lv_img_dsc_t ICON_CASA = {
.header.reserved = 0,
.header.w = 20,
.header.h = 20,
- .data_size = 117,
+ .data_size = 116,
.data = ICON_CASA_map,
};
diff --git a/ports/stm32/boards/Passport/images/color/ICON_CASA__CF_INDEXED_2_BIT.png b/ports/stm32/boards/Passport/images/color/ICON_CASA__CF_INDEXED_2_BIT.png
index 824dd75..f86b841 100644
Binary files a/ports/stm32/boards/Passport/images/color/ICON_CASA__CF_INDEXED_2_BIT.png and b/ports/stm32/boards/Passport/images/color/ICON_CASA__CF_INDEXED_2_BIT.png differ
diff --git a/ports/stm32/boards/Passport/images/color/ICON_HOURGLASS.c b/ports/stm32/boards/Passport/images/color/ICON_HOURGLASS.c
index c5d1722..07165ee 100644
--- a/ports/stm32/boards/Passport/images/color/ICON_HOURGLASS.c
+++ b/ports/stm32/boards/Passport/images/color/ICON_HOURGLASS.c
@@ -15,7 +15,6 @@
#ifndef LV_ATTRIBUTE_IMG_ICON_HOURGLASS
#define LV_ATTRIBUTE_IMG_ICON_HOURGLASS
#endif
-
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_ICON_HOURGLASS uint8_t ICON_HOURGLASS_map[] = {
0x00, 0x00, 0x00, 0x00, /*Color of index 0*/
0xfe, 0xfe, 0xfe, 0xff, /*Color of index 1*/
diff --git a/ports/stm32/boards/Passport/images/mono/ICON_CASA.c b/ports/stm32/boards/Passport/images/mono/ICON_CASA.c
index 0d9cf3c..8b37807 100644
--- a/ports/stm32/boards/Passport/images/mono/ICON_CASA.c
+++ b/ports/stm32/boards/Passport/images/mono/ICON_CASA.c
@@ -1,4 +1,4 @@
-// SPDX-FileCopyrightText: © 2022 Foundation Devices, Inc. <hello@foundationdevices.com>
+// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <hello@foundationdevices.com>
// SPDX-License-Identifier: GPL-3.0-or-later
//
@@ -16,38 +16,36 @@
#endif
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_IMG_ICON_CASA uint8_t ICON_CASA_map[] = {
0x00, 0x00, 0x00, 0x00, /*Color of index 0*/
- 0xff, 0xff, 0xff, 0xff, /*Color of index 1*/
- 0x00, 0x00, 0x00, 0x00, /*Color of index 2*/
- 0x00, 0x00, 0x00, 0x00, /*Color of index 3*/
+ 0x00, 0x00, 0x00, 0xdb, /*Color of index 1*/
- 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x15, 0x55, 0x55, 0x55, 0x54,
- 0x15, 0x55, 0x55, 0x55, 0x54,
- 0x15, 0x55, 0x55, 0x55, 0x54,
- 0x15, 0x55, 0x54, 0x00, 0x14,
- 0x15, 0x55, 0x50, 0x00, 0x04,
- 0x15, 0x55, 0x40, 0x55, 0x00,
- 0x15, 0x55, 0x01, 0x55, 0x40,
- 0x15, 0x55, 0x05, 0x55, 0x54,
- 0x15, 0x55, 0x05, 0x55, 0x54,
- 0x15, 0x55, 0x05, 0x55, 0x54,
- 0x15, 0x55, 0x05, 0x55, 0x54,
- 0x15, 0x55, 0x01, 0x55, 0x40,
- 0x15, 0x55, 0x40, 0x55, 0x00,
- 0x15, 0x55, 0x50, 0x00, 0x04,
- 0x15, 0x55, 0x54, 0x00, 0x14,
- 0x15, 0x55, 0x55, 0x55, 0x54,
- 0x15, 0x55, 0x55, 0x55, 0x54,
- 0x15, 0x55, 0x55, 0x55, 0x54,
- 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00,
+ 0x00, 0x60, 0x00,
+ 0x00, 0xf0, 0x00,
+ 0x03, 0xdc, 0x00,
+ 0x07, 0x0e, 0x00,
+ 0x0e, 0x07, 0x80,
+ 0x38, 0xf1, 0xc0,
+ 0x71, 0xfc, 0xe0,
+ 0x63, 0x8e, 0x60,
+ 0x63, 0x07, 0x00,
+ 0x36, 0x03, 0x80,
+ 0x33, 0x00, 0xc0,
+ 0x33, 0x1d, 0xc0,
+ 0x19, 0xf8, 0x80,
+ 0x18, 0xf1, 0x80,
+ 0x18, 0x01, 0x80,
+ 0x0e, 0xab, 0x00,
+ 0x0f, 0xff, 0x00,
+ 0x01, 0x54, 0x00,
+ 0x00, 0x00, 0x00,
};
const lv_img_dsc_t ICON_CASA = {
- .header.cf = LV_IMG_CF_INDEXED_2BIT,
+ .header.cf = LV_IMG_CF_INDEXED_1BIT,
.header.always_zero = 0,
.header.reserved = 0,
.header.w = 20,
.header.h = 20,
- .data_size = 117,
+ .data_size = 68,
.data = ICON_CASA_map,
};
diff --git a/ports/stm32/boards/Passport/images/mono/ICON_CASA__CF_INDEXED_1_BIT.png b/ports/stm32/boards/Passport/images/mono/ICON_CASA__CF_INDEXED_1_BIT.png
new file mode 100644
index 0000000..f86b841
Binary files /dev/null and b/ports/stm32/boards/Passport/images/mono/ICON_CASA__CF_INDEXED_1_BIT.png differ
diff --git a/ports/stm32/boards/Passport/images/mono/ICON_CASA__CF_INDEXED_2_BIT.png b/ports/stm32/boards/Passport/images/mono/ICON_CASA__CF_INDEXED_2_BIT.png
deleted file mode 100644
index 1dc2d32..0000000
Binary files a/ports/stm32/boards/Passport/images/mono/ICON_CASA__CF_INDEXED_2_BIT.png and /dev/null differ
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.