trezor/ui: style changes

This commit is contained in:
Jan Pochyla 2017-10-09 15:34:24 +02:00
parent 4fa5e36053
commit 72591e053a
2 changed files with 15 additions and 15 deletions

View File

@ -48,7 +48,7 @@ class PinMatrix(ui.Widget):
display.bar(0, 0, 205, 48, ui.BG) display.bar(0, 0, 205, 48, ui.BG)
# input line with a header # input line with a header
display.text_center(120, 30, header, ui.BOLD, ui.GREY, ui.BG) display.text_center(120, 30, header, ui.NORMAL, ui.blend(ui.BG, ui.FG, 0.5), ui.BG)
# pin matrix buttons # pin matrix buttons
for btn in self.pin_buttons: for btn in self.pin_buttons:

View File

@ -62,10 +62,10 @@ BTN_DEFAULT = {
'radius': RADIUS, 'radius': RADIUS,
} }
BTN_DEFAULT_ACTIVE = { BTN_DEFAULT_ACTIVE = {
'bg-color': GREY, 'bg-color': FG,
'fg-color': BG, 'fg-color': BG,
'text-style': BOLD, 'text-style': BOLD,
'border-color': GREY, 'border-color': FG,
'radius': RADIUS, 'radius': RADIUS,
} }
BTN_DEFAULT_DISABLED = { BTN_DEFAULT_DISABLED = {
@ -76,31 +76,31 @@ BTN_DEFAULT_DISABLED = {
'radius': RADIUS, 'radius': RADIUS,
} }
BTN_CANCEL = { BTN_CANCEL = {
'bg-color': RED, 'bg-color': LIGHT_RED,
'fg-color': FG, 'fg-color': FG,
'text-style': BOLD, 'text-style': BOLD,
'border-color': BG, 'border-color': LIGHT_RED,
'radius': RADIUS, 'radius': RADIUS,
} }
BTN_CANCEL_ACTIVE = { BTN_CANCEL_ACTIVE = {
'bg-color': ACTIVE_RED, 'bg-color': FG,
'fg-color': FG, 'fg-color': LIGHT_RED,
'text-style': BOLD, 'text-style': BOLD,
'border-color': ACTIVE_RED, 'border-color': LIGHT_RED,
'radius': RADIUS, 'radius': RADIUS,
} }
BTN_CONFIRM = { BTN_CONFIRM = {
'bg-color': GREEN, 'bg-color': GREEN,
'fg-color': FG, 'fg-color': FG,
'text-style': BOLD, 'text-style': BOLD,
'border-color': BG, 'border-color': GREEN,
'radius': RADIUS, 'radius': RADIUS,
} }
BTN_CONFIRM_ACTIVE = { BTN_CONFIRM_ACTIVE = {
'bg-color': ACTIVE_GREEN, 'bg-color': FG,
'fg-color': FG, 'fg-color': GREEN,
'text-style': BOLD, 'text-style': BOLD,
'border-color': ACTIVE_GREEN, 'border-color': FG,
'radius': RADIUS, 'radius': RADIUS,
} }
BTN_CLEAR = { BTN_CLEAR = {
@ -139,7 +139,7 @@ LDR_DEFAULT = {
} }
LDR_DEFAULT_ACTIVE = { LDR_DEFAULT_ACTIVE = {
'bg-color': BG, 'bg-color': BG,
'fg-color': ACTIVE_GREEN, 'fg-color': GREEN,
'icon': None, 'icon': ICON_SEND,
'icon-fg-color': None, 'icon-fg-color': GREEN,
} }