mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
wip
This commit is contained in:
parent
c6cda7b6f4
commit
7af0483d91
@ -29,13 +29,6 @@ def progress(
|
||||
if description is None:
|
||||
description = TR.progress__please_wait # def_arg
|
||||
|
||||
if title is not None:
|
||||
title = title.upper()
|
||||
elif utils.MODEL != "T2B1":
|
||||
# on TT, uppercase the description which ends up on top of the screen
|
||||
# when no title is set
|
||||
description = description.upper()
|
||||
|
||||
return ui.ProgressLayout(
|
||||
layout=trezorui2.show_progress(
|
||||
description=description,
|
||||
|
@ -89,7 +89,7 @@ def confirm_action(
|
||||
title=title,
|
||||
action=action,
|
||||
description=description,
|
||||
subtitle=subtitle,
|
||||
subtitle=subtitle,
|
||||
verb=verb,
|
||||
verb_cancel=verb_cancel,
|
||||
hold=hold,
|
||||
@ -162,7 +162,7 @@ async def prompt_backup() -> bool:
|
||||
|
||||
result = await interact(
|
||||
trezorui2.confirm_action(
|
||||
title=TR.backup__title_skip.upper(),
|
||||
title=TR.backup__title_skip,
|
||||
action=None,
|
||||
description=TR.backup__want_to_skip,
|
||||
verb=TR.buttons__back_up,
|
||||
@ -283,7 +283,7 @@ async def show_address(
|
||||
# User pressed left cancel button, show mismatch dialogue.
|
||||
else:
|
||||
result = await interact(
|
||||
trezorui2.show_mismatch(title=mismatch_title.upper()),
|
||||
trezorui2.show_mismatch(title=mismatch_title),
|
||||
None,
|
||||
raise_on_cancel=None,
|
||||
)
|
||||
@ -732,7 +732,7 @@ async def confirm_value(
|
||||
info_title, info_value = info_items_list[0]
|
||||
await interact(
|
||||
trezorui2.confirm_blob(
|
||||
title=info_title.upper(),
|
||||
title=info_title,
|
||||
data=info_value,
|
||||
description=description,
|
||||
extra=None,
|
||||
@ -1115,7 +1115,7 @@ async def request_pin_on_device(
|
||||
|
||||
result = await interact(
|
||||
trezorui2.request_pin(
|
||||
prompt=prompt.upper(),
|
||||
prompt=prompt,
|
||||
subprompt=subprompt,
|
||||
allow_cancel=allow_cancel,
|
||||
wrong_pin=wrong_pin,
|
||||
|
@ -123,7 +123,7 @@ async def continue_recovery(
|
||||
homepage = trezorui2.confirm_recovery(
|
||||
title="",
|
||||
description=text,
|
||||
button=button_label.upper(),
|
||||
button=button_label,
|
||||
recovery_type=recovery_type,
|
||||
info_button=False,
|
||||
show_instructions=show_instructions,
|
||||
|
@ -85,7 +85,7 @@ async def select_word(
|
||||
while len(words) < 3:
|
||||
words.append(words[-1])
|
||||
|
||||
word_ordinal = format_ordinal(checked_index + 1).upper()
|
||||
word_ordinal = format_ordinal(checked_index + 1)
|
||||
result = await interact(
|
||||
trezorui2.select_word(
|
||||
title="",
|
||||
|
@ -376,8 +376,8 @@ async def confirm_output(
|
||||
) -> None:
|
||||
if title is not None:
|
||||
# TODO: handle translation:
|
||||
if title.upper().startswith("CONFIRM "):
|
||||
title = title[len("CONFIRM ") :]
|
||||
# if title.upper().startswith("CONFIRM "):
|
||||
# title = title[len("CONFIRM ") :]
|
||||
amount_title = title
|
||||
recipient_title = title
|
||||
elif output_index is not None:
|
||||
|
@ -356,7 +356,7 @@ def show_reset_warning(
|
||||
trezorui2.show_warning(
|
||||
title=subheader or "",
|
||||
description=content,
|
||||
button=button.upper(),
|
||||
button=button,
|
||||
allow_cancel=False,
|
||||
),
|
||||
br_name,
|
||||
|
Loading…
Reference in New Issue
Block a user