Skip to content

Let a theme draw the bar background as a vertical gradient #125

Closed

Description

@alexandrebucci

Problem

A theme can give the bar strip only one color. bar.style.background takes a single #RRGGBB(AA) value, a light/dark pair, a token or null, and the strip draws it as one fill. A theme that wants depth, such as the bundled Everforest darker at the top and lighter at the bottom, can't draw it.

Proposal

Let bar.style take a vertical gradient in place of background:

"bar": {
  "style": {
    "backgroundGradient": {
      "top": { "light": "#e6e2cc", "dark": "#232a2e" },
      "bottom": "@token.surface"
    }
  }
}
  • Each stop takes the same values as background: hex, a light/dark pair or a token.
  • Like borderEdges, only bar.style and script barStyle would read it at first; widget tiles and popups keep one color.
  • backgroundGradient wins over background when both are set.
  • Open question: Liquid Glass tints with the background color. With a gradient it could tint with the gradient itself, or with its bottom color.

Possible today

No. Colors are single values in stablebar.schema.json (color, hexColor), and nothing on main draws a gradient for the bar (README, Displays and notch placement, lists the bar.style keys).

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. M4n0x commented on Oct 22, 2026

    @M4n0x
    Collaborator

    Covered by #143 (15ae182): bar.background and the other backgrounds accept {"gradient": {"colors": [...], "angle": 180}}, which runs top to bottom (README, Layout and style). It is in the 0.6.0 betas.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions