Commit Graph

4 Commits

Author SHA1 Message Date
Sebastian Lohff 19ad4f3e8b Allow per-item styling for text and options
When adding text or an option a style can now be passed along. An option
allows an additional highlighted_style to be passed.
2020-08-28 00:46:32 +02:00
Sebastian Lohff 030492b353 Rename CliMenuTheme class parameters
The _style is redundant, as the whole theme is a collection of styles.
Headers are not really regarded as headers, more as text. Highlight
makes more sense as highlighted.

This is an API breaking change.
2020-08-28 00:43:03 +02:00
Sebastian Lohff 85c3c5c947 Make option prefix/suffix configurable
This can be used to add some text surrounding options or to remove the
space between cursor and option item.
2020-08-28 00:18:53 +02:00
Sebastian Lohff f20b5eac89 Add more examples 2020-08-16 14:24:47 +02:00