Skip to content

Open a shared theme from a link to try it on the bar and install it #676

Closed

Description

@M4n0x

Problem

Sharing a theme today means sending a folder or a zip and asking someone to put it in their packages folder, or publishing it to the Store first. There's no quick way to try a theme someone made, for example on a website that builds themes, before deciding to keep it.

Proposal

A stablebar://theme link that carries a whole theme: the exact text of its package.json and config.json, encoded in the link.

  • Opening it brings up Settings → Theme with the linked theme on a card above the gallery and its sample-bar preview. Nothing on the bar changes yet.
  • Try on bar shows it on the real bar as a trial, with Keep or Cancel, like trying a bundled theme today.
  • Use installs it the way the Store installs a theme, then selects it. Dismiss removes the temporary copy.
  • Opening a second link replaces the waiting one; a link that arrives before Settings is ready waits for it, like package links.

Strict checks, since a link can come from any web page:

  • Checked before anything is decoded: the link is at most 64 KB and the decoded files at most 32 KB together; a malformed or oversized link shows an error and does nothing else.
  • The same inspection the Store runs on a theme's Get: kind is theme, only theme keys (every profile included), no hosts, permissions, requirements or secret settings, a valid id and version.
  • No includes and no screenshot, since a link carries no other files.
  • Within bar, only appearance properties (height, margin, inset, spacing, background, style, the notch properties and the popup gap). A link can't hide the menu bar or move the bar.
  • Ids of bundled themes and other reserved ids are refused, so a link can't replace a built-in theme.
  • A font that isn't installed falls back to the system font.

This builds on #675: a link builds a preview without a click, so expanding its tokens must never freeze StableBar.

Acceptance

  • A valid link opens Settings → Theme on the theme; trying, keeping, cancelling, using and dismissing behave as above.
  • Nothing is installed or changed on the bar until the person chooses.
  • Each refused case (too large, malformed, wrong kind, non-theme key, bar property outside the list, include, screenshot, reserved id) shows a clear message and leaves nothing behind.
  • The guide documents the link and its limits, and DECISIONS.md records what a theme link may carry.

Possible today

Partly: copy a theme folder into the packages folder, or install one from the Store. Neither can be opened from a link or tried before installing.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 15, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.16.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