Skip to content

Widgets that a profile shows or hides appear and disappear without animation #947

Done

Description

@M4n0x

Problem

A profile can show or hide a widget, for example with a when.app condition that turns on a widget only while one app is in front:

"widgetOverrides": { "ai-usage": { "display": [] } },
"profiles": [
  { "name": "T3 Code", "when": { "app": "com.t3tools.t3code" },
    "configuration": { "widgetOverrides": { "ai-usage": { "display": "all" } } } }
]

Switching apps then makes the widget vanish and reappear at once, and its neighbours jump to their new places. A widget whose script output sets hidden fades in and out with the bar's motion (bar.motion, the widget's transition), so the same widget behaves differently depending on what hides it. The same goes for any other change a profile makes when the focused app, power, screens, appearance, Wi-Fi, camera or microphone change.

Proposal

When the active profiles change because the situation changed, show the new configuration with the bar's animation: widgets that join or leave the bar use their transition, and the others slide to their places, as they do for hidden. Under Reduce Motion, or with bar.motion set to none, nothing animates. Reloads after editing the file or Settings stay as they are.

Possible today

No. A script widget can set hidden in its output, but only from data the script itself sees.

Diagnosis

ConfigurationStore.refreshContext reloads the configuration when the context a profile checks changes. BarStore.display then assigns configuration = next without a transaction, so BarView's unit transitions (visibilityTransition) never run. WidgetPresentation.update animates only the hidden change.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 27, 2026
  2. stablebar-releases commented on Nov 29, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.20.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions