Skip to content

Compact mode: auto-shrink labels (full -> short -> icon) #1

Description

@paehtz

Problem

On narrow taskbars, or setups with the Widgets/weather button or many centered app icons, the bar can grow wide enough to run into the taskbar app icons. DeskTabs currently assumes there is enough room on the left.

Proposal

Add CompactMode = auto | full | short | icon to CONF:

  • full — index + name (current)
  • short — index + truncated name
  • icon — index number / colour square / custom icon only, like the app icons on the taskbar
  • auto — start at full; when the computed bar width exceeds a budget (a share of the taskbar width), downshift step by step until it fits

Solves "runs into the icons" via a width budget, without precisely detecting the icon cluster (unreliable on the Win11 XAML taskbar).

Tasks

  • CompactMode + width-budget logic in BuildBar
  • short rendering
  • icon rendering (ties into the per-tab icons issue)
  • Document in README / CLAUDE.md

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions