From f04f190a0271d574d9948df6eed220af68ab1569 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Tue, 2 Jul 2019 13:19:44 +0200 Subject: [PATCH] core/ui: enlarge backspace button closes #288 --- core/src/trezor/ui/mnemonic_bip39.py | 6 +++--- core/src/trezor/ui/mnemonic_slip39.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/trezor/ui/mnemonic_bip39.py b/core/src/trezor/ui/mnemonic_bip39.py index 4c4ae0c67b..1c0186a54c 100644 --- a/core/src/trezor/ui/mnemonic_bip39.py +++ b/core/src/trezor/ui/mnemonic_bip39.py @@ -57,7 +57,7 @@ class InputButton(Button): fg_color = s.fg_color bg_color = s.bg_color - tx = ax + 24 # x-offset of the content + tx = ax + 16 # x-offset of the content ty = ay + ah // 2 + 8 # y-offset of the content # entered content @@ -95,10 +95,10 @@ class Bip39Keyboard(ui.Layout): self.prompt = Prompt(prompt) icon_back = res.load(ui.ICON_BACK) - self.back = Button(ui.grid(0, n_x=4, n_y=4), icon_back, ButtonClear) + self.back = Button(ui.grid(0, n_x=3, n_y=4), icon_back, ButtonClear) self.back.on_click = self.on_back_click - self.input = InputButton(ui.grid(1, n_x=4, n_y=4, cells_x=3), "", "") + self.input = InputButton(ui.grid(1, n_x=3, n_y=4, cells_x=2), "", "") self.input.on_click = self.on_input_click self.keys = [ diff --git a/core/src/trezor/ui/mnemonic_slip39.py b/core/src/trezor/ui/mnemonic_slip39.py index f5b7b4da5a..3c980f9fbe 100644 --- a/core/src/trezor/ui/mnemonic_slip39.py +++ b/core/src/trezor/ui/mnemonic_slip39.py @@ -45,7 +45,7 @@ class InputButton(Button): fg_color = s.fg_color bg_color = s.bg_color - tx = ax + 24 # x-offset of the content + tx = ax + 16 # x-offset of the content ty = ay + ah // 2 + 8 # y-offset of the content if not self.keyboard.is_input_final(): @@ -88,10 +88,10 @@ class Slip39Keyboard(ui.Layout): self.prompt = Prompt(prompt) icon_back = res.load(ui.ICON_BACK) - self.back = Button(ui.grid(0, n_x=4, n_y=4), icon_back, ButtonClear) + self.back = Button(ui.grid(0, n_x=3, n_y=4), icon_back, ButtonClear) self.back.on_click = self.on_back_click - self.input = InputButton(ui.grid(1, n_x=4, n_y=4, cells_x=3), self) + self.input = InputButton(ui.grid(1, n_x=3, n_y=4, cells_x=2), self) self.input.on_click = self.on_input_click self.keys = [