Skip to content

gui_toolkit 0.222.0

Choose a tag to compare

@sachahjkl sachahjkl released this 12 Nov 17:44
· 1258 commits to master since this release
v0.222.0
8d4e584

Added

  • Shades, soft pairs and intents: shade(c, .S100) … .S950 (and hue_shade) give a colour's tints and deep shades along its OKLCH lightness, its hue kept; shade_on(c, ground, 4.5) the shade of a colour that reads on a ground; soft_pair(c) a soft fill of a colour for the theme shown and words of the same colour that read on it. Intent (Primary, Info, Success, Warning, Danger, Cancel) names what an act means: intent_hue, intent_tag, and button_icon(..., intent = .Danger); button_icon(..., hue = ...) is soft unless solid.

Changed

  • The intents' buttons are soft: accent_button, danger_button and warn_button, and the new success_button, info_button and cancel_button, are a soft fill of their hue with words of that hue (soft_pair), readable in every theme, light or dark, instead of a solid fill.