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

ui/scroll: make page indicators more visible

This commit is contained in:
Jan Pochyla 2018-01-31 14:44:47 +01:00
parent a306ce60c2
commit 6f8a4de4e6
2 changed files with 3 additions and 4 deletions

View File

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

View File

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