mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
minor color changes in pin dialog
This commit is contained in:
parent
90836621f5
commit
78efd4f2e0
@ -36,8 +36,8 @@ BLUE_GRAY = rgbcolor(0x60, 0x7D, 0x8B)
|
|||||||
BLACK = rgbcolor(0x00, 0x00, 0x00)
|
BLACK = rgbcolor(0x00, 0x00, 0x00)
|
||||||
WHITE = rgbcolor(0xFA, 0xFA, 0xFA)
|
WHITE = rgbcolor(0xFA, 0xFA, 0xFA)
|
||||||
|
|
||||||
# password manager palette
|
# custom palette
|
||||||
|
BLACKISH = rgbcolor(0x20, 0x20, 0x20)
|
||||||
PM_DARK_BLUE = rgbcolor(0x1A, 0x29, 0x42)
|
PM_DARK_BLUE = rgbcolor(0x1A, 0x29, 0x42)
|
||||||
PM_BLUE = rgbcolor(0x34, 0x98, 0xDB)
|
PM_BLUE = rgbcolor(0x34, 0x98, 0xDB)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ from . import display, in_area, rotate_coords
|
|||||||
|
|
||||||
|
|
||||||
DEFAULT_BUTTON = {
|
DEFAULT_BUTTON = {
|
||||||
'bg-color': ui.BLACK,
|
'bg-color': ui.BLACKISH,
|
||||||
'fg-color': ui.WHITE,
|
'fg-color': ui.WHITE,
|
||||||
'text-style': ui.NORMAL,
|
'text-style': ui.NORMAL,
|
||||||
'border-color': ui.BLACK,
|
'border-color': ui.BLACK,
|
||||||
|
@ -52,12 +52,12 @@ class PinMatrix():
|
|||||||
btn.render()
|
btn.render()
|
||||||
|
|
||||||
# vertical border bars
|
# vertical border bars
|
||||||
display.bar(79, 48, 2, 143, ui.blend(ui.BLACK, ui.WHITE, 0.25))
|
# display.bar(79, 48, 2, 143, ui.blend(ui.BLACK, ui.WHITE, 0.25))
|
||||||
display.bar(158, 48, 2, 143, ui.blend(ui.BLACK, ui.WHITE, 0.25))
|
# display.bar(158, 48, 2, 143, ui.blend(ui.BLACK, ui.WHITE, 0.25))
|
||||||
|
|
||||||
# horizontal border bars
|
# horizontal border bars
|
||||||
display.bar(0, 95, 240, 2, ui.blend(ui.BLACK, ui.WHITE, 0.25))
|
# display.bar(0, 95, 240, 2, ui.blend(ui.BLACK, ui.WHITE, 0.25))
|
||||||
display.bar(0, 142, 240, 2, ui.blend(ui.BLACK, ui.WHITE, 0.25))
|
# display.bar(0, 142, 240, 2, ui.blend(ui.BLACK, ui.WHITE, 0.25))
|
||||||
|
|
||||||
def send(self, event, pos):
|
def send(self, event, pos):
|
||||||
if self.clear_button.send(event, pos) == BTN_CLICKED:
|
if self.clear_button.send(event, pos) == BTN_CLICKED:
|
||||||
|
Loading…
Reference in New Issue
Block a user