From 6b3aa768bd8a564f95e402276f053607d1027a9d Mon Sep 17 00:00:00 2001 From: tychovrahe <brunam@seznam.cz> Date: Mon, 1 Jul 2024 13:15:43 +0200 Subject: [PATCH] fix(core/mercury): remove universal backlight fading --- core/.changelog.d/3987.changed | 1 + core/src/boot.py | 6 ++++-- core/src/trezor/ui/layouts/mercury/__init__.py | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 core/.changelog.d/3987.changed diff --git a/core/.changelog.d/3987.changed b/core/.changelog.d/3987.changed new file mode 100644 index 0000000000..fccc1666e2 --- /dev/null +++ b/core/.changelog.d/3987.changed @@ -0,0 +1 @@ +[T3T1] Smoothened screen transitions by removing backlight fading diff --git a/core/src/boot.py b/core/src/boot.py index dd7a418c24..9e3086a839 100644 --- a/core/src/boot.py +++ b/core/src/boot.py @@ -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 diff --git a/core/src/trezor/ui/layouts/mercury/__init__.py b/core/src/trezor/ui/layouts/mercury/__init__.py index 3a1aa1d2f2..b4720a58d1 100644 --- a/core/src/trezor/ui/layouts/mercury/__init__.py +++ b/core/src/trezor/ui/layouts/mercury/__init__.py @@ -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: