blob: acd5ac7cfa53e87e3e31809d25541bea8ad6de38 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
aerc-stylesets(7)
# Name
aerc-stylesets - styleset file specification for *aerc*(1)
# SYNOPSIS
aerc uses a simple configuration syntax to configure the styleset for
its ui.
# Styleset Configuration
Aerc uses a simple configuration file to describe a styleset. The
styleset is described as key, value pairs. In each line, the key
represents the style object it signifies and the color/attribute of
that is modified.
For example, in the line below, the foreground color of the
style object "msglist_unread" is set to "cornflowerblue"
```
msglist_unread.fg=cornflowerblue
```
The configuration also allows wildcard matching of the style_objects
to configure multiple style objects at a time.
## Style
The following options are available to be modified for each of the
style objects.
*fg*
The foreground color of the style object is set.
Syntax: `<style_object>.fg=<color>`
*bg*
The background color of the style object is set.
Syntax: `<style_object>.bg=<color>`
*bold*
The bold attribute of the style object is set/unset.
Syntax: `<style_object>.bold=<true|false|toggle>`
*blink*
The blink attribute of the style object is set/unset.
_The terminal needs to support blinking text_
Syntax: `<style_object>.blink=<true|false|toggle>`
*underline*
The underline attribute of the style object is set/unset.
_The terminal needs to support underline text_
Syntax: `<style_object>.underline=<true|false|toggle>`
*italic*
The italic attribute of the style object is set/unset.
_The terminal needs to support italic text_
Syntax: `<style_object>.italic=<true|false|toggle>`
*reverse*
Reverses the color of the style object. Exchanges the foreground
and background colors.
Syntax: `<style_object>.reverse=<true|false|toggle>`
_If the value is false, it doesn't change anything_
*normal*
All the attributes of the style object are unset.
Syntax: `<style_object>.normal=<true>`
_The value doesn't matter_
*default*
Set the style object to the default style of the context. Usually
based on the terminal.
Syntax: `<style_object>.default=<true>`
_The value doesn't matter_
## Style Objects
The style objects represent the various ui elements or ui instances for
styling.
[[ *Style Object*
:[ *Description*
| default
: The default style object used for normal ui elements while not using specialized configuration.
| error
: The style used to show errors.
| warning
: The style used when showing warnings.
| success
: The style used for success messages.
| title
: The style object used to style titles in ui elements.
| header
: The style object used to style headers in ui elements.
| statusline_default
: The default style applied to the statusline.
| statusline_error
: The style used for error messages in statusline.
| statusline_success
: The style used for success messages in statusline.
| msglist_default
: The default style for messages in a message list.
| msglist_unread
: Unread messages in a message list.
| msglist_read
: Read messages in a message list.
| msglist_flagged
: The messages with the flagged flag.
| msglist_deleted
: The messages marked as deleted.
| msglist_marked
: The messages with the marked flag.
| msglist_result
: The messages which match the current search.
| 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
: The completion gutter.
| completion_pill
: The completion pill.
| tab
: The style for the tab bar.
| stack
: The style for ui stack element.
| spinner
: The style for the loading spinner.
| border
: The style used to draw borders. *Only the background color is used unless you customize border-char-vertical and/or border-char-horizontal in aerc.conf*.
| selector_default
: The default style for the selector ui element.
| selector_focused
: The focused item in a selector ui element.
| selector_chooser
: The item chooser in a selector ui element.
## fnmatch style wildcard matching
The styleset configuration can be made simpler by using the fnmatch
style wildcard matching for the style object.
The special characters used in the fnmatch wildcards are:
[[ *Pattern*
:[ *Meaning*
| \*
: Matches everything
| \?
: Matches any single character
For example, the following wildcards can be made using this syntax.
[[ *Example*
:[ Description
| \*.fg=blue
: Set the foreground color of all style objects to blue.
| \*list.bg=hotpink
: Set the background color of all style objects that end in list to hotpink.
## Selected modifier
Selected modifier can be applied to any style object. The style provided for
the selected modifier are applied on top of the style object it corresponds to.
If you would like to make sure message that are flagged as read in the msglist
appear in yellow foreground and black background. You can specify that with
this:
msglist_default.selected.fg=yellow
msglist_default.selected.bg=black
If we specify the global style selected modifier using fnmatch as below:
\*.selected.reverse=toggle
This toggles the reverse switch for selected version of all the style objects.
## Layered styles
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:
```
msglist_default
msglist_unread
msglist_read
msglist_flagged
msglist_deleted
msglist_marked
```
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.
The values can be one of the following.
*default*
The color is set as per the system or terminal default.
*<Color name>*
Any w3c approved color name is used to set colors for the style.
*<Hex code>*
Hexcode for a color can be used. The format must be "\#XXXXXX"
*<Dec number>*
Color based on the palette index. Valid numbers are between 0
and 255.
# SEE ALSO
*aerc*(1) *aerc-config*(5)
# AUTHORS
Originally created by Drew DeVault <sir@cmpwn.com> and maintained by Robin
Jarry <robin@jarry.cc> who is assisted by other open source contributors. For
more information about aerc development, see https://sr.ht/~rjarry/aerc/.
|