diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-06-22 12:19:39 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-06-24 21:44:02 +0200 |
commit | ecf47542cb5ec5da7d699b36cf8b8af2cbf0a7a6 (patch) | |
tree | 3cd1de3a955f1bd31c8ab806c625516a909cbf2d /config/config.go | |
parent | 15a07e589201a3c748835747760a1b41e054ccc0 (diff) | |
download | aerc-ecf47542cb5ec5da7d699b36cf8b8af2cbf0a7a6.tar.gz |
pgp: add customizable icons
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Tested-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'config/config.go')
-rw-r--r-- | config/config.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index 941a7261..a6ee5785 100644 --- a/config/config.go +++ b/config/config.go @@ -50,6 +50,12 @@ type UIConfig struct { NewMessageBell bool `ini:"new-message-bell"` Spinner string `ini:"spinner"` SpinnerDelimiter string `ini:"spinner-delimiter"` + IconUnencrypted string `ini:"icon-unencrypted"` + IconEncrypted string `ini:"icon-encrypted"` + IconSigned string `ini:"icon-signed"` + IconSignedEncrypted string `ini:"icon-signed-encrypted"` + IconUnknown string `ini:"icon-unknown"` + IconInvalid string `ini:"icon-invalid"` DirListFormat string `ini:"dirlist-format"` DirListDelay time.Duration `ini:"dirlist-delay"` DirListTree bool `ini:"dirlist-tree"` @@ -702,6 +708,12 @@ func LoadConfigFromFile(root *string, logger *log.Logger) (*AercConfig, error) { FuzzyComplete: false, Spinner: "[..] , [..] , [..] , [..] , [..], [..] , [..] , [..] ", SpinnerDelimiter: ",", + IconUnencrypted: "", + IconSigned: "[s]", + IconEncrypted: "[e]", + IconSignedEncrypted: "", + IconUnknown: "[s?]", + IconInvalid: "[s!]", DirListFormat: "%n %>r", DirListDelay: 200 * time.Millisecond, NextMessageOnDelete: true, |