Repository navigation
v2.2.0-alpha.3
Pre-release
Pre-release
·
5 commits
to master
since this release
Highlights
- roles: hover, pressed and selected are now bits on any role (
Surface.Hover(),Danger.Pressed(),Raised.Selected()), worked out readable for every role, and kept apart from the role at rest at 256 colors. - roles:
Onworks with any fill as the ground, so text, wells, controls and your own roles read on a tone, a state or a nested surface.Spandraws text on its ground, andLerpcrossfades fitted palettes. - roles:
AccentChoiceandColorLimitread an accent and a color limit from config, with JSON schemas. Single-hue tints mark danger, warning and success with distinct attributes. - tint:
ParseJSON,Tint.CompleteandTint.Missingfor hand-made tints, andPairfor a dark and a light tint in config. - sources: Ghostty and Windows Terminal keep both halves of a light/dark pair, and
FileSource.SetDarkswitches between them. - A new
roles-appexample shows a centralized theme in a larger app, which changes live.
Changelog
⚠️ Breaking Changes
- a328a97: roles: states as role bits, roles drawn on any ground, and config types (@lrstanley)
- the Hover and Selection roles are removed; use a role's Hover() and Selected(). Role.On and KindOn are removed; Fill pairs a fill with the text that reads on it. Lerp now takes fitted palettes; use LerpPalette for palettes. Fitted.Text no longer sets a background; use Span.
- 577dc49: sources: keep both halves of a terminal's light and dark pair (@lrstanley)
- Spec.Load takes a dark bool, ghostty.Load and windowsterminal.Parse take one too, and terminal.Detect and All return *sources.FileSource.
✨ New Features
- aa0b07c: parse hand-made tints, and pair a dark and a light tint in config (@lrstanley)
📚 Documentation
- 9e881bb: explain what roles are for, and add a themed app example (@lrstanley)
🧹 Misc
1 change
- 8a3eaa0: tintgen: tell dark from light tints with Color.IsDark (@lrstanley)
Full changelog: v2.2.0-alpha.2...v2.2.0-alpha.3
📦 Install
go get github.com/lrstanley/bubbletint/chromatint/v2@v2.2.0-alpha.3
go get github.com/lrstanley/bubbletint/glamourtint/v2@v2.2.0-alpha.3
go get github.com/lrstanley/bubbletint/roles/v2@v2.2.0-alpha.3
go get github.com/lrstanley/bubbletint/sources/v2@v2.2.0-alpha.3
go get github.com/lrstanley/bubbletint/v2@v2.2.0-alpha.3Docs:
- github.com/lrstanley/bubbletint/chromatint/v2
- github.com/lrstanley/bubbletint/glamourtint/v2
- github.com/lrstanley/bubbletint/roles/v2
- github.com/lrstanley/bubbletint/sources/v2
- github.com/lrstanley/bubbletint/v2
💬 What to do next?
- 🙋♂️ Running into an issue or want a specific feature? Take a look here!
- ⌚ Find previous releases.
- 🔗 Other useful links: