diff --git a/src/trezor/ui/loader.py b/src/trezor/ui/loader.py index 0b037c2a78..97f372a5cb 100644 --- a/src/trezor/ui/loader.py +++ b/src/trezor/ui/loader.py @@ -2,6 +2,7 @@ import utime from micropython import const from trezor import loop from trezor import ui +from trezor import res class Loader(ui.Widget): @@ -39,10 +40,10 @@ class Loader(ui.Widget): progress, -8, s['fg-color'], s['bg-color']) elif s['icon-fg-color'] is None: ui.display.loader( - progress, -8, s['fg-color'], s['bg-color'], s['icon']) + progress, -8, s['fg-color'], s['bg-color'], res.load(s['icon'])) else: ui.display.loader( - progress, -8, s['fg-color'], s['bg-color'], s['icon'], s['icon-fg-color']) + progress, -8, s['fg-color'], s['bg-color'], res.load(s['icon']), s['icon-fg-color']) def __iter__(self): sleep = loop.sleep(1000000 // 60) # 60 fps