Commit Graph

8 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 56b76706f6 Group selection icons in CliMultiMenu API
The select/unselect icons of a CliMultiMenu will in nearly all cases be
changed together, therefore it makes sense to let the API be less
verbose for this case.

This is an API breaking change for CliMultiMenu
2020-08-21 00:09:12 +02:00
Sebastian Lohff c363c187bd Remove unused methods and unused arguments 2020-08-20 00:15:41 +02:00
Sebastian Lohff f20b5eac89 Add more examples 2020-08-16 14:24:47 +02:00
Sebastian Lohff 3d1d2d5acd Add theme example 2019-08-15 15:13:18 +02:00
Sebastian Lohff 6655fd097a Add two simple examples 2019-02-01 00:03:42 +01:00