Skip to content

feat(foldertabs): optional per-tab leading Icons - #432

Merged
tannevaled merged 1 commit into
mainfrom
tabs-icons-dialog-actions
Aug 30, 2026
Merged

feat(foldertabs): optional per-tab leading Icons#432
tannevaled merged 1 commit into
mainfrom
tabs-icons-dialog-actions

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

FolderTabs took only string labels, so a host could not give a tab a glyph. Add an optional Icons []IconFunc slice, parallel to Labels: a non-nil entry at index i draws a leading glyph before that tab's caption and widens the tab to fit it. A short or nil slice leaves those tabs icon-less, so a FolderTabs that never sets Icons draws exactly as before (added to the widget's MVVM allowlist, like Labels). Pixel-tested; 100% coverage gate green.

FolderTabs took only string labels, so a host could not give a tab a glyph.
Add an optional Icons []IconFunc slice, parallel to Labels: a non-nil entry at
index i draws a leading glyph before that tab's caption and widens the tab to fit
it. A short or nil slice leaves those tabs icon-less, so a FolderTabs that never
sets Icons draws exactly as before. Icons is a set-once appearance field (added
to the widget's MVVM allowlist, like Labels).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 61eee7a into main Aug 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant