mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 12:28:09 +00:00
ui/scroll: make page indicators more visible
This commit is contained in:
parent
a306ce60c2
commit
6f8a4de4e6
@ -50,13 +50,13 @@ def render_scrollbar(page, page_count):
|
||||
if page_count * padding > bbox:
|
||||
padding = bbox // page_count
|
||||
|
||||
x = const(225)
|
||||
x = const(220)
|
||||
y = (bbox // 2) - (page_count // 2) * padding
|
||||
|
||||
for i in range(0, page_count):
|
||||
if i != page:
|
||||
ui.display.bar_radius(x, y + i * padding, size,
|
||||
size, ui.DARK_GREY, ui.BG, 4)
|
||||
size, ui.GREY, ui.BG, 4)
|
||||
ui.display.bar_radius(x, y + page * padding, size,
|
||||
size, ui.FG, ui.BG, 4)
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
import utime
|
||||
from micropython import const
|
||||
from trezor import io, ui
|
||||
from . import contains, rotate
|
||||
from trezor.ui import contains, rotate
|
||||
|
||||
SWIPE_UP = const(0x01)
|
||||
SWIPE_DOWN = const(0x02)
|
||||
|
Loading…
Reference in New Issue
Block a user