From 43df87552c2c54a7cc346cb044d08dc8ee5b6925 Mon Sep 17 00:00:00 2001 From: owl Date: Sat, 16 Sep 2023 11:55:31 +0200 Subject: 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 Acked-by: Robin Jarry Reviewed-by: Bence Ferdinandy --- lib/state/templates.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/state') 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 } -- cgit