mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-07 13:12:41 +00:00
fix(core/mercury): remove universal backlight fading
This commit is contained in:
parent
759ce5bc14
commit
6b3aa768bd
1
core/.changelog.d/3987.changed
Normal file
1
core/.changelog.d/3987.changed
Normal file
@ -0,0 +1 @@
|
|||||||
|
[T3T1] Smoothened screen transitions by removing backlight fading
|
@ -57,7 +57,8 @@ async def bootscreen() -> None:
|
|||||||
|
|
||||||
if can_lock_device():
|
if can_lock_device():
|
||||||
enforce_welcome_screen_duration()
|
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())
|
ui.display.orientation(storage.device.get_rotation())
|
||||||
if utils.USE_HAPTIC:
|
if utils.USE_HAPTIC:
|
||||||
io.haptic.haptic_set_enabled(storage.device.get_haptic_feedback())
|
io.haptic.haptic_set_enabled(storage.device.get_haptic_feedback())
|
||||||
@ -83,7 +84,8 @@ async def bootscreen() -> None:
|
|||||||
if rotation != ui.display.orientation():
|
if rotation != ui.display.orientation():
|
||||||
# there is a slight delay before next screen is shown,
|
# there is a slight delay before next screen is shown,
|
||||||
# so we don't fade unless there is a change of orientation
|
# 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)
|
ui.display.orientation(rotation)
|
||||||
allow_all_loader_messages()
|
allow_all_loader_messages()
|
||||||
return
|
return
|
||||||
|
@ -192,7 +192,6 @@ class RustLayout(ui.Layout):
|
|||||||
|
|
||||||
def _first_paint(self) -> None:
|
def _first_paint(self) -> None:
|
||||||
|
|
||||||
ui.backlight_fade(ui.BacklightLevels.NONE)
|
|
||||||
self._paint()
|
self._paint()
|
||||||
|
|
||||||
if __debug__ and self.should_notify_layout_change:
|
if __debug__ and self.should_notify_layout_change:
|
||||||
|
Loading…
Reference in New Issue
Block a user