Commit Graph

8 Commits

Author SHA1 Message Date
Sebastian Lohff 74a411a52e 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-27 02:40:17 +02:00
Sebastian Lohff dc3b03c653 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-27 02:40:09 +02:00
Sebastian Lohff 9ef6532c1f Make option prefix/suffix configurable
This can be used to add some test surrounding options or to remove the
space between cursor and option item.
2020-08-27 01:57:02 +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