1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 18:49:07 +00:00
trezor-firmware/bootloader/ui-mockup/bl_common.py
2016-10-05 21:09:45 +02: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)