diff options
author | owl <owl@u8.is> | 2023-09-16 11:55:31 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-09-19 11:23:40 +0200 |
commit | 43df87552c2c54a7cc346cb044d08dc8ee5b6925 (patch) | |
tree | d4cb4524ce16db99318275203e52ee740cda5bf3 /lib/state | |
parent | 4400b08a95b4f4548388e34858516df33d80b2d3 (diff) | |
download | aerc-43df87552c2c54a7cc346cb044d08dc8ee5b6925.tar.gz |
config: make all message list symbols/icons configurable
This patch removes the hard coded letters (which don't make sense in all
languages), and replaces them with configurable icons, like the existing
`icon-attachment` and other icons.
Signed-off-by: owl <owl@u8.is>
Acked-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'lib/state')
-rw-r--r-- | lib/state/templates.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/state/templates.go b/lib/state/templates.go index 22d06589..fbe5aa4a 100644 --- a/lib/state/templates.go +++ b/lib/state/templates.go @@ -345,16 +345,16 @@ func (d *templateData) Flags() []string { switch { case d.info.Flags.Has(models.SeenFlag | models.AnsweredFlag): - flags = append(flags, "r") // message has been replied to + flags = append(flags, d.ui().IconReplied) // message has been replied to case d.info.Flags.Has(models.SeenFlag): break case d.info.Flags.Has(models.RecentFlag): - flags = append(flags, "N") // message is new + flags = append(flags, d.ui().IconNew) // message is unread and new default: - flags = append(flags, "O") // message is old + flags = append(flags, d.ui().IconOld) // message is unread and old } if d.info.Flags.Has(models.DeletedFlag) { - flags = append(flags, "D") + flags = append(flags, d.ui().IconDeleted) } if d.info.BodyStructure != nil { for _, bS := range d.info.BodyStructure.Parts { @@ -365,10 +365,10 @@ func (d *templateData) Flags() []string { } } if d.info.Flags.Has(models.FlaggedFlag) { - flags = append(flags, "!") + flags = append(flags, d.ui().IconFlagged) } if d.marked { - flags = append(flags, "*") + flags = append(flags, d.ui().IconMarked) } return flags } |