Skip to content

Toggling a theme switch again during the reveal freezes the half-open circle on screen #229

Closed

Description

@lumenpearson

What is broken. On «Оформление», toggling «Цвета из обоев» or «Чёрная тема» left the circular theme reveal frozen over the rows. A screenshot shows a half-finished circle and a white disc with a snapshot of the switch, overlapping the content. Owner's words: «слои смены - зависают при переключении тумблера».

Cause.

  • ThemeRevealState.reveal photographs the window on every call, even while a wipe is on screen.
  • The overlay drawing the wipe is part of the photographed view, so a second toggle within about 0.9 s bakes the first wipe's half-open circle into a new still.
  • That still is then held for up to 350 ms waiting for the theme to change, and wiped from the new origin for 560 ms. Each further tap nests another layer.
  • Switches show it most, because they are flipped back and forth to compare. «Чёрная тема» in the light theme changes no colour, so every tap holds the still for the full 350 ms.

Separately, wipe is published before its job exists, and only that job's finally clears it. A job cancelled before its first dispatch never runs its finally, which would leave the still up for good.

Expected.

  • One wipe at a time: a toggle during a wipe applies its change without photographing the wipe.
  • The still always comes down.

Activity

  1. added 2 commits that reference this issue on Oct 2, 2026
    411ecdb
    74d1007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions