diff --git a/core/theme.py b/core/theme.py index 5b5efff..305442f 100644 --- a/core/theme.py +++ b/core/theme.py @@ -116,6 +116,12 @@ class Theme(object): if not type(value) in (list, dict): value = self.__keywords.get(value, value) + + if isinstance(value, list): + key = '__{}-idx__'.format(key) + idx = widget.get(key, 0) + widget.set(key, (idx + 1) % len(value)) + value = value[idx] self.__current[key] = value return value diff --git a/doc/NOTES.md b/doc/NOTES.md index 4440fe5..f729d3e 100644 --- a/doc/NOTES.md +++ b/doc/NOTES.md @@ -35,3 +35,4 @@ - themes: use colors to improve theme readability - brightness: read from CLI tools - input: use events? +- themes: rotating icons (battery!)