Skip to content

Commit

Permalink
Allow to adjust brightness for all types of QR codes
Browse files Browse the repository at this point in the history
  • Loading branch information
eupn authored and FoundationKen committed Oct 2, 2022
1 parent 8f5da15 commit bbc2edc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ports/stm32/boards/Passport/modules/pages/show_qr_page.py
Expand Up @@ -96,10 +96,11 @@ def attach(self, group):
self.timer = lv.timer_create(lambda timer: self.update(), _FRAME_TIME, None)
self.prev_card_header = common.ui.hide_card_header()

if self.is_qr_resizable():
# Intercept keys for size and brightness level change
common.keypad.set_intercept_key_cb(self.on_key)

if self.is_qr_resizable():
self.prev_top_level = common.ui.set_is_top_level(False)
common.keypad.set_intercept_key_cb(self.on_key)

self.prev_card_descs = common.ui.set_micron_bar_cards(self.qr_card_descs, force_show=True)
common.ui.set_micron_bar_active_idx(self.qr_size_idx)
Expand Down

0 comments on commit bbc2edc

Please sign in to comment.