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

core: make QR code smaller for Monero

This commit is contained in:
Tomas Susanka 2020-07-01 17:20:04 +00:00
parent 14a8da9c28
commit 0f9a2459d3

View File

@ -47,7 +47,8 @@ async def show_qr(
) -> bool:
QR_X = const(120)
QR_Y = const(115)
QR_COEF = const(4)
QR_SIZE_THRESHOLD = const(63)
QR_COEF = const(4) if len(address) < QR_SIZE_THRESHOLD else const(3)
qr = Qr(address, QR_X, QR_Y, QR_COEF)
text = Text(desc, ui.ICON_RECEIVE, ui.GREEN)
content = Container(qr, text)