Skip to content

v2.2.0-alpha.3

Pre-release
Pre-release

Choose a tag to compare

@lrstanley lrstanley released this 28 Nov 01:36
· 5 commits to master since this release
v2.2.0-alpha.3
2213987

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: On works with any fill as the ground, so text, wells, controls and your own roles read on a tone, a state or a nested surface. Span draws text on its ground, and Lerp crossfades fitted palettes.
  • roles: AccentChoice and ColorLimit read 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.Complete and Tint.Missing for hand-made tints, and Pair for a dark and a light tint in config.
  • sources: Ghostty and Windows Terminal keep both halves of a light/dark pair, and FileSource.SetDark switches between them.
  • A new roles-app example 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

🧹 Misc

1 change

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.3

Docs:

💬 What to do next?