aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-02-09 23:54:56 +0100
committerRobin Jarry <robin@jarry.cc>2024-02-14 23:05:23 +0100
commit22254f7532034d6b8561913e7fa7280800711fca (patch)
tree90bed9d9445e09043307659958bd0401d63245fd /doc
parentb6fd647d7d51ceaf386a79da6d04f57e0a7deac2 (diff)
downloadaerc-22254f7532034d6b8561913e7fa7280800711fca.tar.gz
colorize: preserve defaults unless overridden
To be consistent with stylesets for the rest of aerc's UI, settings in the [viewer] section now only override the default colorize theme. Implements: https://todo.sr.ht/~rjarry/aerc/222 Changelog-changed: The `[viewer]` section of stylesets now preserve default values as documented in `aerc-stylesets(7)` unless explicitly overridden. Requested-by: Karel Balej <balejk@matfyz.cz> Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Karel Balej <balejk@matfyz.cz> Tested-by: Matěj Cepl <mcepl@cepl.eu> Tested-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/aerc-stylesets.7.scd35
1 files changed, 33 insertions, 2 deletions
diff --git a/doc/aerc-stylesets.7.scd b/doc/aerc-stylesets.7.scd
index e270c700..d874dd44 100644
--- a/doc/aerc-stylesets.7.scd
+++ b/doc/aerc-stylesets.7.scd
@@ -378,10 +378,32 @@ selector_focused.fg = 15
completion_pill.bg = 12
completion_default.bg = 8
completion_default.fg = 15
+
+[viewer]
+url.underline = true
+url.fg = 3
+header.bold = true
+header.fg = 4
+signature.dim = true
+signature.fg = 4
+diff_meta.bold = true
+diff_chunk.fg = 6
+diff_chunk_func.fg = 6
+diff_chunk_func.dim = true
+diff_add.fg = 2
+diff_del.fg = 1
+quote_1.fg = 6
+quote_2.fg = 4
+quote_3.fg = 6
+quote_3.dim = true
+quote_4.fg = 4
+quote_4.dim = true
+quote_x.fg = 5
+quote_x.dim = true
```
-You can choose either to reset everything by starting your styleset with these
-two lines:
+You can choose either to reset everything (except in the *[viewer]* section) by
+starting your styleset with these two lines:
```
*.default=true
@@ -390,6 +412,15 @@ two lines:
Or selectively override style object attributes.
+If you want to also reset the *[viewer]* section, you need to insert the same
+two lines:
+
+```
+[viewer]
+*.default=true
+*.normal=true
+```
+
# SEE ALSO
*aerc*(1) *aerc-config*(5)