apps.homescreen: new default homescreen (using display.avatar)

pull/25/head
Pavol Rusnak 7 years ago
parent 0f2a82e9f1
commit ac477b62f8
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -20,9 +20,9 @@ async def dim_screen():
async def display_homescreen():
from apps.common import storage
image = res.load('apps/homescreen/res/trezor_lock.toig')
image = res.load('apps/homescreen/res/homescreen.toif')
ui.display.bar(0, 0, ui.SCREEN, ui.SCREEN, ui.BG)
ui.display.icon((ui.SCREEN - 124) // 2, (ui.SCREEN - 40 - 180) // 2, image, ui.FG, ui.BG)
ui.display.avatar((ui.SCREEN - 144) // 2, (ui.SCREEN - 144) // 2 - 10, image, ui.WHITE, ui.BLACK)
if not storage.is_initialized():
label = 'Go to trezor.io/start'

Loading…
Cancel
Save