Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Adjust the animation toggle to be enabled by default #235

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion core/src/storage/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,11 @@ def set_tap_awake_enable(enable: bool) -> None:
def is_animation_enabled() -> bool:
global _ANIMATION_VALUE
if _ANIMATION_VALUE is None:
_ANIMATION_VALUE = common.get_bool(_NAMESPACE, _ANIMATION, public=True)
animation_enabled = common.get(_NAMESPACE, _ANIMATION, public=True)
if animation_enabled == common._FALSE_BYTE:
_ANIMATION_VALUE = False
else:
_ANIMATION_VALUE = True
return _ANIMATION_VALUE


Expand Down
2 changes: 1 addition & 1 deletion core/src/trezor/lvglui/scrs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self, prev_scr=None, **kwargs):

if kwargs.get("nav_back", False):
self.nav_back = Navigation(self.content_area)
self.nav_back.align(lv.ALIGN.TOP_LEFT, 12, 44)
self.nav_back.align(lv.ALIGN.TOP_LEFT, 0, 44)
self.add_event_cb(self.on_nav_back, lv.EVENT.GESTURE, None)
if "title" in kwargs:
self.title = ScreenTitle(self.content_area, None, (), kwargs["title"])
Expand Down
Loading