From b2fa5a16f52741a6f7f6e5f33561457d702dc31d Mon Sep 17 00:00:00 2001 From: Srivathsan Murali Date: Thu, 23 Jan 2020 13:56:48 +0100 Subject: Contextual UI Configuration + Adds parsing of contextual ui sections to aerc config. + Add GetUiConfig method for AercConfig that is used to get the specialized UI config. + Add UiConfig method to AccountView to get specialized UI Config. + Modifies Aerc codebase to use specialized UIConfig instead. + Adds documentation for Contextual UI Configuration --- widgets/msgviewer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/msgviewer.go') diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index 0bfd2d8..93d3d89 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -63,7 +63,7 @@ func NewMessageViewer(acct *AccountView, conf *config.AercConfig, func(header string) ui.Drawable { return &HeaderView{ Name: header, - Value: fmtHeader(msg, header, conf.Ui.TimestampFormat), + Value: fmtHeader(msg, header, acct.UiConfig().TimestampFormat), } }, ) -- cgit 1.4.1-2-gfad0