1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 19:38:09 +00:00
trezor-firmware/assets/ui-mockup/bl_common.py
2017-02-06 16:28:49 +01:00

11 lines
335 B
Python

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)