From 984327fea5d833ccf127ca5514ddd968320be1a4 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 7 Feb 2018 19:48:32 +0100 Subject: [PATCH] src/trezor/ui: add new BTN_KEY_CONFIRM style to mnemonic keyboard, use that one --- src/trezor/ui/keyboard.py | 4 ++-- src/trezor/ui/style.py | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/trezor/ui/keyboard.py b/src/trezor/ui/keyboard.py index 3f5e5c9f60..b027edfbf1 100644 --- a/src/trezor/ui/keyboard.py +++ b/src/trezor/ui/keyboard.py @@ -34,8 +34,8 @@ class Input(Button): self.taint() if content == word: # confirm button self.enable() - self.normal_style = ui.BTN_CONFIRM['normal'] - self.active_style = ui.BTN_CONFIRM['active'] + self.normal_style = ui.BTN_KEY_CONFIRM['normal'] + self.active_style = ui.BTN_KEY_CONFIRM['active'] self.icon = ui.ICON_CONFIRM elif word: # auto-complete button self.enable() diff --git a/src/trezor/ui/style.py b/src/trezor/ui/style.py index b5455dbc41..890c99c18c 100644 --- a/src/trezor/ui/style.py +++ b/src/trezor/ui/style.py @@ -179,6 +179,30 @@ BTN_KEY = { } } +BTN_KEY_CONFIRM = { + 'normal': { + 'bg-color': GREEN, + 'fg-color': FG, + 'text-style': MONO, + 'border-color': BG, + 'radius': RADIUS, + }, + 'active': { + 'bg-color': FG, + 'fg-color': GREEN, + 'text-style': MONO, + 'border-color': FG, + 'radius': RADIUS, + }, + 'disabled': { + 'bg-color': BG, + 'fg-color': GREY, + 'text-style': MONO, + 'border-color': BG, + 'radius': RADIUS, + } +} + # loader LDR_DEFAULT = { 'normal': {