mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-19 12:58:13 +00:00
ui/confirm: correct button positions
This commit is contained in:
parent
f5445d7db9
commit
acf9d789c7
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user