From afe35839eddfaf43be0f791e97a926a15d91fc02 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sun, 24 Apr 2022 09:50:08 -0500 Subject: style: add style config options for dirlist_unread and dirlist_recent Adds two style options: dirlist_unread and dirlist_recent. These options apply in layers, in the same way as msglist_* styles do. Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- doc/aerc-stylesets.7.scd | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/aerc-stylesets.7.scd b/doc/aerc-stylesets.7.scd index 598a7707..3fa5cb8b 100644 --- a/doc/aerc-stylesets.7.scd +++ b/doc/aerc-stylesets.7.scd @@ -115,6 +115,10 @@ styling. : The messages with the marked flag. | dirlist_default : The default style for directories in the directory list. +| dirlist_unread +: The style used for directories with unread messages +| dirlist_recent +: The style used for directories with recent messages | completion_default : The default style for the completion engine. | completion_gutter @@ -176,8 +180,8 @@ If we specify the global style selected modifer using fnmatch as below: This toggles the reverse switch for selected version of all the style objects. ## Layered styles -Some styles, (currently only the `msglist\*` ones) are applied in layers. If -a style differs from the base (in this case `msglist_default`) then that style +Some styles, (currently the `msglist\*` and `dirlist\*` ones) are applied in layers. If +a style differs from the base (in this case `\{msglist|dirlist\}_default`) then that style applies, unless overridden by a higher layer. The order that `msglist` styles are applied in is, from first to last: @@ -190,7 +194,13 @@ msglist_deleted msglist_marked ``` -So, the marked style will override all other msglist styles. +So, the marked style will override all other msglist styles. The order for `dirlist` styles is: + +``` +dirlist_default +dirlist_unread +dirlist_recent +``` ## Colors The color values are set using the values accepted by the tcell library. -- cgit