Repository navigation
feat(tui)!: surfaces, themes by scheme, shimmer and progress bars - #25
Merged
Merged
Conversation
Add theme.Scheme with the names default, muted, deep and pastel, so one name from a flag or a configuration file gives a tool one look in every package with colors of its own. BREAKING CHANGE: notice.AllColors is now notice.Schemes, keyed by theme.Scheme. Move the COLORFGBG light-background detection from notice to term.LightBackground, so other packages share it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Panels, dialogs, menus and the help draw a title bar with the title as a badge instead of a rounded border; dialogs and menus are filled. Buttons are badges, tabs a bar with the active tab as a badge, and a notice fills the status bar with its level's color and label. NewTitleBar adds a line at the top of the screen. The row under the cursor keeps one background: text on it keeps its color, shaded to read on that background, and rows keep their own colors. Solid turns a foreground color into a badge background. Themes come by theme.Scheme, each with a dark and a light version, picked by ThemeOf from the terminal's background. PlainTheme is used where the terminal takes no colors, and 24-bit colors become the nearest of the 256 colors where the terminal does not announce 24-bit colors. Add Shimmer and GradientText for text whose colors flow through the mittwald gradient, ProgressBar for a bar with its label inside that glides to its value, PastelColors, and the Animated interface that keeps the screen redrawing. BREAKING CHANGE: ThemeFrom is gone; use ThemeOf or Schemes. Panels draw a title bar unless SetBorder is given a border, and pad one column on each side by default. Button draws as a badge. Co-Authored-By: Claude Opus 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.
Summary
theme.Schemenames color schemes (default,muted,deep,pastel) shared across packages.notice.AllColorsbecomesnotice.Schemes, keyed by those names. Light-background detection moves toterm.LightBackground.NewTitleBaradds a bar at the top of the screen.tui.Schemeshas a dark and a light version of each theme.ThemeOfpicks one from the terminal's background,PlainThemeis used when colors are off, and 24-bit colors are reduced to 256 colors where needed.ShimmerandGradientTextuse the mittwald gradient.ProgressBaris in the nickpit style.Animatedkeeps the screen redrawing.--themeflag, a shimmering wordmark, a progress bar while tickets load, and colors taken from the theme.Breaking changes
notice.AllColorsis nownotice.Schemes.tui.ThemeFromis removed.Test plan
make check🤖 Generated with Claude Code