Skip to content

Commit c9a7a54

Browse files
committed
qr: show qrcodes with more contrast on jade v2 devices
1 parent 829756b commit c9a7a54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main/gui.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ ESP_EVENT_DEFINE_BASE(GUI_EVENT);
3737

3838
const color_t GUI_BLOCKSTREAM_JADE_GREEN = 0x4C04;
3939
const color_t GUI_BLOCKSTREAM_BUTTONBORDER_GREY = 0x0421;
40+
#ifdef CONFIG_IDF_TARGET_ESP32S3
41+
// V2 QR codes scan better with a higher contrast background
42+
const color_t GUI_BLOCKSTREAM_QR_PALE = 0xFFFF;
43+
#else
4044
const color_t GUI_BLOCKSTREAM_QR_PALE = 0x494A;
41-
45+
#endif
4246
const color_t GUI_BLOCKSTREAM_HIGHTLIGHT_DEFAULT = GUI_BLOCKSTREAM_JADE_GREEN;
4347
const color_t GUI_BLOCKSTREAM_HIGHTLIGHT_ORANGE = 0xE0D3;
4448
const color_t GUI_BLOCKSTREAM_HIGHTLIGHT_BLUE = 0xD318;

0 commit comments

Comments
 (0)