summaryrefslogtreecommitdiff
path: root/alot/widgets.py
diff options
context:
space:
mode:
authordtk <dtk@gmx.de>2011-12-28 12:15:20 +0100
committerdtk <dtk@gmx.de>2012-01-02 18:04:01 +0100
commit411142db3c718f467759f234a5e767608d5d5465 (patch)
treea2ee02ec29eb8ba3a0a8aa7afc76ff72d42f811a /alot/widgets.py
parent9416053c45c57168e0a7ef47c731ad5fceccf4ef (diff)
Refine selection of default themeing for highlighting
The setting for config option `aaa_bbb_{component}_focus_{tag}_bg` doesn't fall back onto `aaa_bbb_{component}_focus_bg` because so far we only check if a config entry for `aaa_bbb_{component}_focus_{tag}_{fg|bg}` exists. If *one* of them exists (`fg OR bg`), we use that *combination*. If then the other entry does not exist, it falls back to `'default'`. This commit refines the fallback selection mechanism in that is tries recursively to select themeing for the parent option (`aaa_bbb_ccc_fg` => `aaa_bbb_fg`) before finally falling back to the default setting. Cf issue #25. Closes #208.
Diffstat (limited to 'alot/widgets.py')
0 files changed, 0 insertions, 0 deletions