mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-20 21:38:26 +00:00
11 lines
335 B
Python
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)
|