1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-29 09:38:08 +00:00
trezor-firmware/assets/ui-mockup/bl_common.py

11 lines
335 B
Python
Raw Normal View History

from trezor import ui, res
BL_HEADER_FG = ui.BLACK
BL_HEADER_BG = ui.ORANGE
def bl_header(title):
ui.display.bar(0, 0, 240, 32, BL_HEADER_BG)
image = res.load('./res/bootloader.toig')
ui.display.icon(8, 4, image, BL_HEADER_FG, BL_HEADER_BG)
ui.display.text(8 + 24 + 8, 23, title, ui.BOLD, BL_HEADER_FG, BL_HEADER_BG)