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:
parent
14a8da9c28
commit
0f9a2459d3
@ -47,7 +47,8 @@ async def show_qr(
|
|||||||
) -> bool:
|
) -> bool:
|
||||||
QR_X = const(120)
|
QR_X = const(120)
|
||||||
QR_Y = const(115)
|
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)
|
qr = Qr(address, QR_X, QR_Y, QR_COEF)
|
||||||
text = Text(desc, ui.ICON_RECEIVE, ui.GREEN)
|
text = Text(desc, ui.ICON_RECEIVE, ui.GREEN)
|
||||||
content = Container(qr, text)
|
content = Container(qr, text)
|
||||||
|
Loading…
Reference in New Issue
Block a user