mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
use bar_radius where needed
This commit is contained in:
parent
c5897e71ad
commit
e405a6305d
@ -25,8 +25,7 @@ ui.display.bar(0, 10, 240, 240 - 50, ui.LIGHT_RED)
|
||||
ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
|
||||
|
||||
# header
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
|
||||
ui.display.bar(0, 10, 240, 22, ui.ORANGE)
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE)
|
||||
|
||||
image = res.load('./res/bootloader.toig')
|
||||
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
|
||||
@ -48,4 +47,4 @@ cancel = button.Button((0, 240 - 48, 240, 48), 'Proceed anyway', normal_style=CA
|
||||
cancel.render()
|
||||
|
||||
while True:
|
||||
ui.display.refresh()
|
||||
ui.display.refresh()
|
||||
|
@ -26,8 +26,7 @@ ui.display.bar(0, 10, 240, 240 - 50, ui.LIGHT_RED)
|
||||
ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
|
||||
|
||||
# header
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
|
||||
ui.display.bar(0, 10, 240, 22, ui.ORANGE)
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE)
|
||||
|
||||
image = res.load('./res/bootloader.toig')
|
||||
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
|
||||
@ -42,4 +41,4 @@ reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=DEFAULT_BU
|
||||
reboot.render()
|
||||
|
||||
while True:
|
||||
if hasattr(ui.display, 'refresh'): ui.display.refresh()
|
||||
if hasattr(ui.display, 'refresh'): ui.display.refresh()
|
||||
|
@ -34,8 +34,7 @@ ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
# header
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
|
||||
ui.display.bar(0, 10, 240, 22, ui.ORANGE)
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE)
|
||||
|
||||
image = res.load('./res/bootloader.toig')
|
||||
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
|
||||
@ -60,4 +59,4 @@ cancel = button.Button((0, 240 - 48, 119, 48), 'Cancel', normal_style=CANCEL_BUT
|
||||
cancel.render()
|
||||
|
||||
while True:
|
||||
if hasattr(ui.display, 'refresh'): ui.display.refresh()
|
||||
if hasattr(ui.display, 'refresh'): ui.display.refresh()
|
||||
|
@ -22,8 +22,7 @@ ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
# header
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
|
||||
ui.display.bar(0, 10, 240, 22, ui.ORANGE)
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE)
|
||||
|
||||
image = res.load('./res/bootloader.toig')
|
||||
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
|
||||
@ -42,4 +41,4 @@ confirm = button.Button((0, 240 - 48, 240, 48), 'Hold to confirm', normal_style=
|
||||
confirm.render()
|
||||
|
||||
while True:
|
||||
if hasattr(ui.display, 'refresh'): ui.display.refresh()
|
||||
if hasattr(ui.display, 'refresh'): ui.display.refresh()
|
||||
|
@ -22,8 +22,7 @@ ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
# header
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
|
||||
ui.display.bar(0, 10, 240, 22, ui.ORANGE)
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE)
|
||||
|
||||
image = res.load('./res/bootloader.toig')
|
||||
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
|
||||
@ -39,4 +38,4 @@ reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=DEFAULT_BU
|
||||
reboot.render()
|
||||
|
||||
while True:
|
||||
if hasattr(ui.display, 'refresh'): ui.display.refresh()
|
||||
if hasattr(ui.display, 'refresh'): ui.display.refresh()
|
||||
|
@ -8,8 +8,7 @@ ui.display.clear()
|
||||
ui.display.backlight(255)
|
||||
|
||||
# header
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
|
||||
ui.display.bar(0, 10, 240, 22, ui.ORANGE)
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE)
|
||||
|
||||
image = res.load('./res/bootloader.toig')
|
||||
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
|
||||
|
@ -38,8 +38,7 @@ ui.display.bar(0, 10, 240, 240 - 58, ui.LIGHT_RED)
|
||||
ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
|
||||
|
||||
# header
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE, ui.BLACK, 4)
|
||||
ui.display.bar(0, 10, 240, 22, ui.ORANGE)
|
||||
ui.display.bar(0, 0, 240, 32, ui.ORANGE)
|
||||
|
||||
image = res.load('./res/bootloader.toig')
|
||||
ui.display.icon(8, 4, image, ui.ORANGE, ui.WHITE)
|
||||
@ -63,4 +62,4 @@ cancel = button.Button((0, 240 - 48, 119, 48), 'Cancel', normal_style=CANCEL_BUT
|
||||
cancel.render()
|
||||
|
||||
while True:
|
||||
if hasattr(ui.display, 'refresh'): ui.display.refresh()
|
||||
if hasattr(ui.display, 'refresh'): ui.display.refresh()
|
||||
|
@ -29,9 +29,9 @@ async def animate_swipe():
|
||||
|
||||
|
||||
def render_swipe_icon(fg):
|
||||
ui.display.bar(102, 214, 36, 4, fg, ui.BLACK, 2)
|
||||
ui.display.bar(106, 222, 28, 4, fg, ui.BLACK, 2)
|
||||
ui.display.bar(110, 230, 20, 4, fg, ui.BLACK, 2)
|
||||
ui.display.bar_radius(102, 214, 36, 4, fg, ui.BLACK, 2)
|
||||
ui.display.bar_radius(106, 222, 28, 4, fg, ui.BLACK, 2)
|
||||
ui.display.bar_radius(110, 230, 20, 4, fg, ui.BLACK, 2)
|
||||
|
||||
|
||||
def render_scrollbar(page, page_count):
|
||||
@ -47,6 +47,6 @@ def render_scrollbar(page, page_count):
|
||||
|
||||
for i in range(0, page_count):
|
||||
if i != page:
|
||||
ui.display.bar(x, y + i * padding, size,
|
||||
ui.display.bar_radius(x, y + i * padding, size,
|
||||
size, ui.DARK_GREY, ui.BLACK, 4)
|
||||
ui.display.bar(x, y + page * padding, size, size, ui.WHITE, ui.BLACK, 4)
|
||||
ui.display.bar_radius(x, y + page * padding, size, size, ui.WHITE, ui.BLACK, 4)
|
||||
|
Loading…
Reference in New Issue
Block a user