rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
1.32k stars 38 forks source link

Allow creating `rio.Text` without passing a TextStyle #59

Open mad-moo opened 3 months ago

mad-moo commented 3 months ago

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:

mad-moo commented 1 month ago

Duplicate of #11?