rio icon indicating copy to clipboard operation
rio copied to clipboard

Allow creating `rio.Text` without passing a TextStyle

Open mad-moo opened this issue 8 months ago • 1 comments

Styling rio.Text always requires instantiating a separate rio.TextStyle. This gets annoying real fast. Add an overload so that one can either pass a TextStyle or pass the styling values directly.

While we're at improving textstyle, consider improving them in general:

  • Add shortcuts for bold & italic
  • Allow specifying colors as strings, e.g. danger in the TextStyle class

mad-moo avatar Jun 10 '24 18:06 mad-moo