1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-31 18:00:58 +00:00

fix(core/mercury): remove universal backlight fading

This commit is contained in:
tychovrahe 2024-07-01 13:15:43 +02:00 committed by TychoVrahe
parent 759ce5bc14
commit 6b3aa768bd
3 changed files with 5 additions and 3 deletions

View File

@ -0,0 +1 @@
[T3T1] Smoothened screen transitions by removing backlight fading

View File

@ -57,7 +57,8 @@ async def bootscreen() -> None:
if can_lock_device():
enforce_welcome_screen_duration()
ui.backlight_fade(ui.BacklightLevels.NONE)
if utils.INTERNAL_MODEL == "T2T1":
ui.backlight_fade(ui.BacklightLevels.NONE)
ui.display.orientation(storage.device.get_rotation())
if utils.USE_HAPTIC:
io.haptic.haptic_set_enabled(storage.device.get_haptic_feedback())
@ -83,7 +84,8 @@ async def bootscreen() -> None:
if rotation != ui.display.orientation():
# there is a slight delay before next screen is shown,
# so we don't fade unless there is a change of orientation
ui.backlight_fade(ui.BacklightLevels.DIM)
if utils.INTERNAL_MODEL == "T2T1":
ui.backlight_fade(ui.BacklightLevels.NONE)
ui.display.orientation(rotation)
allow_all_loader_messages()
return

View File

@ -192,7 +192,6 @@ class RustLayout(ui.Layout):
def _first_paint(self) -> None:
ui.backlight_fade(ui.BacklightLevels.NONE)
self._paint()
if __debug__ and self.should_notify_layout_change: