Skip to content

Theme previews draw a focus block for themes whose focused workspace is text only #400

Closed

Description

@M4n0x

What happens

For the two themes that show the focused workspace by text color only, Gruvbox and Notch, the theme previews draw a filled block behind the focused workspace. The bar never draws that block. This happens in the theme cards and the large preview in Settings → Theme, the theme cards in setup, and a theme's page in Packages.

On Gruvbox the block is the accent orange behind the orange focused number, so the number disappears from the preview. On Notch the preview shows a cyan pill, but the bar keeps the text-only focus decided in #127.

Picking one of these themes after seeing its card makes it look as if the bar fails to show the focused workspace.

Steps to reproduce

  1. Open Settings → Theme with a workspaces widget on the bar.
  2. Look at the Gruvbox and Notch cards, then pick Gruvbox and look at the large preview.
  3. Compare with the bar.

Expected

The previews draw the focused workspace as the bar does: an orange number on Gruvbox, a white number among grey ones on Notch, with nothing behind it.

Environment

  • StableBar 0.9.1-beta.20261031180916.551 (also on main at 8cc7921)
  • macOS 27.2, AeroSpace

Evidence

Drawn offscreen with StableBar --render-scenes from main.

Settings → Theme with Gruvbox The bar with Gruvbox
Notch card The bar with Notch

Diagnosis

Both themes set workspaceDefaults.indicator to none; they are the only bundled themes that do.

ThemeSampleBar.workspaceCell in Sources/StableBar/ThemeCard.swift fills the focused cell when the indicator is anything but underline:

if focused && workspace?.indicator != .underline {

That includes none. The bar (BarView) reads configuration?.indicator ?? .background and fills the cell only for .background. Every preview that uses ThemeSampleBar is affected: ThemeCard, AppearanceView, PackageDetailView, SetupTour and SetupDemo.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 1, 2026
  2. stablebar-releases commented on Nov 2, 2026

    @stablebar-releases

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

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions