mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 09:28:13 +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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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