1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00

core/ui: enlarge backspace button (#302)

core/ui: enlarge backspace button
This commit is contained in:
Tomas Susanka 2019-07-02 15:00:12 +02:00 committed by GitHub
commit 913b1202f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -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 = [

View File

@ -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 = [