Repository navigation
feat(picker): group themes by family, add search, swatches and a sample - #2
Merged
Merged
Conversation
SoftModal now lists themes under their family with a palette swatch beside each variant, marks the confirmed theme, and shows a sample of the highlighted theme's colors. "/" starts a search that matches family, variant, name or light/dark; navigation then steps through the matches only, and enter will not confirm a theme the filter hides. Themes with no family are listed on their own. HideSwatch lets an application list a runtime-resolved placeholder without a swatch, and ThemeSwatch is exported. The plain Modal keeps its flat layout but honours the search. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Brings the collection to 51 themes in 23 families. A saved "shades-of-purple" now resolves to the default theme, like any unknown name. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ThemePicker.SoftModalbecomes the full Tide-family theme picker that TideMail and Tide each carried a private copy of:●ThemeSwatch, exported)/search matching family, variant, name orlight/dark; up/down step through the matches only, andenterwill not confirm a theme the filter hidesNew API:
Filter(),Filtering(),ThemeSwatch(), andThemePickerOptions.HideSwatchfor a placeholder whose colors are only known at runtime (e.g.match-omarchy).Compatibility
Modalkeeps its flat layout (no search line unless a filter is active) and all existing tests pass unchanged.Familyare listed on their own rather than under a "System" header.j/k/arrows/enter/esc,/). Apps with configurable bindings translate theirs before callingUpdate.Testing
go test -race ./...,go vet ./...and a Windows vet pass. New tests cover grouping, filtering, navigation within a filter,enteron a hidden theme, reopen clearing the search, rendering, height fit and scrolling,HideSwatch, and the legacy modal's filter.Once merged, TideMail and Tide can delete their copies of
theme_picker.go.