Skip to content

Let a theme set how far the focused window's box reaches past the icon #627

Closed

Description

@M4n0x

Problem

The box behind the focused window's icon always reaches 3 pt past the icon on each side and 2 pt above and below. A theme can round its corners with cornerRadius, but can't make it slimmer. Tonhalle Line's flat, sharp strip draws a nearly square 20 × 18 pt box around a 14 pt icon, and a tighter, softer box suits it better.

Proposal

  • paddingHorizontal and paddingVertical on focusedWindowStyle set how far the box reaches past the icon. Without them it keeps 3 pt and 2 pt. While magnification zooms the icons, it still hugs the icon as today: at most 2 pt on the sides, none above and below.
  • Both keys are already accepted there: focusedWindowStyle is a style in stablebar.schema.json, and they're decoded but ignored. So this changes no configuration format; it gives them a meaning here. Document it in docs/widgets.md.
  • The Tonhalle Line example theme (examples/packages/tonhalle-line) goes to 1.1.1 and sets "focusedWindowStyle": { "cornerRadius": 4, "paddingHorizontal": 2, "paddingVertical": 1 } in workspaceDefaults, an 18 × 16 pt box with 4 pt corners. Like any theme value there, it turns the box on for workspace widgets that don't set focusedWindowStyle; null turns it off.

Possible today

Partly. cornerRadius rounds the box, but nothing changes its size: the padding keys are ignored.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 13, 2026
  2. stablebar-releases commented on Nov 14, 2026

    @stablebar-releases

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