Repository navigation
v0.0.0-alpha.16
Pre-release
Pre-release
Highlights
Programs that paint the screen their own colors can now tell bloom what those colors are, so fades, dims, selections, and border effects blend toward the right background.
Root.SetColors(fg, bg)sets the colors effects blend with. A cell with no color of its own shows the screen's colors. Bloom used to learn them only from the terminal's reports, so a program that set the view'sBackgroundColorandForegroundColorhad no way to keep bloom on them. The terminal's first report replaced them, and a report sent before the paint reached the terminal described the terminal's own colors. CallSetColorswhen your theme changes, instead of sending the root fake color messages. Pass nil for either color to use the terminal's own.WithColorsnow holds from the start. It sets the same colorsSetColorsdoes, rather than standing in only until the first report.- Terminal reports still count.
Initstill asks the terminal for its colors andUpdatestill records the reports. A report never replaces a color the program set, and is used once that color is set back to nil. Colors that neither the program nor the terminal gave are light gray on black, as before. - Bubble Tea v2.2.0, along with the latest x/ansi and ultraviolet.
Breaking: canvas.Env.Profile is removed, and the root no longer handles tea.ColorProfileMsg; nothing read either. Programs that sent the root fake tea.BackgroundColorMsg or tea.ForegroundColorMsg to keep it on their theme should call SetColors instead, because reports no longer override colors the program set.
Changelog
⚠️ Breaking Changes
- cc476b4: let a program set the colors effects blend with (@lrstanley)
🧹 Misc
1 change
- 550ed15: lint: fix golangci-lint findings (@lrstanley)
📦 Dependency Updates
1 change
- f700001: deps: upgrade go dependencies (@lrstanley)
Full changelog: v0.0.0-alpha.15...v0.0.0-alpha.16
📦 Install
go get bloomfx.dev/bloom@v0.0.0-alpha.16Docs: bloomfx.dev/bloom
💬 What to do next?
- 🙋♂️ Running into an issue or want a specific feature? Take a look here!
- ⌚ Find previous releases.
- 🔗 Other useful links: