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

ui/confirm: correct button positions

This commit is contained in:
Peter Jensen 2018-01-19 13:17:50 +01:00 committed by Jan Pochyla
parent f5445d7db9
commit acf9d789c7

View File

@ -16,10 +16,10 @@ class ConfirmDialog(Widget):
def __init__(self, content, confirm=DEFAULT_CONFIRM, cancel=DEFAULT_CANCEL): def __init__(self, content, confirm=DEFAULT_CONFIRM, cancel=DEFAULT_CANCEL):
self.content = content self.content = content
if cancel is not None: if cancel is not None:
self.confirm = Button(ui.grid(8, n_x=2), confirm, self.confirm = Button(ui.grid(9, n_x=2), confirm,
normal_style=ui.BTN_CONFIRM, normal_style=ui.BTN_CONFIRM,
active_style=ui.BTN_CONFIRM_ACTIVE) active_style=ui.BTN_CONFIRM_ACTIVE)
self.cancel = Button(ui.grid(9, n_x=2), cancel, self.cancel = Button(ui.grid(8, n_x=2), cancel,
normal_style=ui.BTN_CANCEL, normal_style=ui.BTN_CANCEL,
active_style=ui.BTN_CANCEL_ACTIVE) active_style=ui.BTN_CANCEL_ACTIVE)
else: else: