mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-01 18:30:56 +00:00
use constants
This commit is contained in:
parent
c41922a654
commit
774d6aaee4
14
src/main.py
14
src/main.py
@ -7,18 +7,22 @@ BLACK = 0x0000
|
||||
WHITE = 0xFFFF
|
||||
BLUEGRAY = rgb2color(0x80, 0x80, 0x80)
|
||||
|
||||
MONO = 0
|
||||
NORMAL = 1
|
||||
BOLD = 2
|
||||
|
||||
d = Display()
|
||||
|
||||
d.bar(0, 0, 240, 40, BLUEGRAY)
|
||||
d.bar(0, 40, 240, 200, WHITE)
|
||||
|
||||
d.text(10, 28, 'Sending', 2, WHITE, BLUEGRAY)
|
||||
d.text(10, 28, 'Sending', BOLD, WHITE, BLUEGRAY)
|
||||
|
||||
d.text(10, 80, '110.126967 BTC', 2, BLACK, WHITE)
|
||||
d.text(10, 110, 'to this address:', 1, BLACK, WHITE)
|
||||
d.text(10, 80, '110.126967 BTC', BOLD, BLACK, WHITE)
|
||||
d.text(10, 110, 'to this address:', NORMAL, BLACK, WHITE)
|
||||
|
||||
d.text(10, 140, '1BitkeyP2nDd5oa64x', 0, BLACK, WHITE)
|
||||
d.text(10, 160, '7AjvBbbwST54W5Zmx2', 0, BLACK, WHITE)
|
||||
d.text(10, 140, '1BitkeyP2nDd5oa64x', MONO, BLACK, WHITE)
|
||||
d.text(10, 160, '7AjvBbbwST54W5Zmx2', MONO, BLACK, WHITE)
|
||||
|
||||
|
||||
while True:
|
||||
|
Loading…
Reference in New Issue
Block a user