core: style

release/2020-04 core/v2.3.0
Tomas Susanka 4 years ago
parent bf20537f41
commit 0b7a8449f8

@ -127,7 +127,9 @@ async def _show_share_words(ctx, share_words, share_index=None, group_index=None
utils.ensure(share_words == shares_words_check)
# confirm the share
await require_hold_to_confirm(ctx, paginated, ButtonRequestType.ResetDevice, cancel=False)
await require_hold_to_confirm(
ctx, paginated, ButtonRequestType.ResetDevice, cancel=False
)
def _split_share_into_pages(share_words):

@ -258,7 +258,9 @@ class HoldToConfirm(ui.Layout):
self.cancel = None
if cancel:
self.cancel = Button(ui.grid(16, n_x=4), res.load(ui.ICON_CANCEL), ButtonAbort)
self.cancel = Button(
ui.grid(16, n_x=4), res.load(ui.ICON_CANCEL), ButtonAbort
)
self.cancel.on_click = self.on_cancel # type: ignore
def _on_press_start(self) -> None:

Loading…
Cancel
Save