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

[widclkinfo] Keeps focus when widget_utils.swipeOn() #3680

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Commits on Dec 1, 2024

  1. clock_info: Expose internal blur function as force_blur

    ...so an external action like hiding widgets with widclkinfo can
    unfocus the clock info.
    This always decrements Bangle.CLKINFO_FOCUS,
    so in the future we should only call force_blur if we know the Clock
    Info is focused. We could provide a different function ensure_blur.
    Corwin Kerr committed Dec 1, 2024
    Configuration menu
    Copy the full SHA
    8d626dc View commit details
    Browse the repository at this point in the history
  2. widget_utils: Add shown and hidden events

    This can help widgets, such as widclkinfo, know when they are on
    screen.
    Corwin Kerr committed Dec 1, 2024
    Configuration menu
    Copy the full SHA
    0d4d1b8 View commit details
    Browse the repository at this point in the history
  3. widclkinfo: work in progress: Be aware of widget_utils.swipeOn

    TODO: disable these changes when widget_utils are not being used.
    
    Use new (prototype) widget_utils events to blur and set offscreen the
    clock info when the widgets are hidden. This prevents activating or
    further interacting with the widclkinfo.
    Corwin Kerr committed Dec 1, 2024
    Configuration menu
    Copy the full SHA
    a906075 View commit details
    Browse the repository at this point in the history
  4. Suggestions from review: emit events from Bangle and moving force_blu…

    …r calls
    Corwin Kerr committed Dec 1, 2024
    Configuration menu
    Copy the full SHA
    9ec6acc View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2024

  1. Also emit event when autohiding

    Corwin Kerr committed Dec 2, 2024
    Configuration menu
    Copy the full SHA
    73cf053 View commit details
    Browse the repository at this point in the history
  2. Listen for widget events from Bangle

    Corwin Kerr committed Dec 2, 2024
    Configuration menu
    Copy the full SHA
    6cf3393 View commit details
    Browse the repository at this point in the history