1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 01:18:28 +00:00

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

This commit is contained in:
Pavol Rusnak 2017-11-25 11:52:34 +02:00
parent 0f2a82e9f1
commit ac477b62f8
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 2 additions and 2 deletions

View File

@ -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'

Binary file not shown.