From fcdcd32de7118e1de1f8d94c380a0e80a64265ec Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 17 May 2019 11:52:38 -0400 Subject: Remove unimplemented color configuration Will probably end up doing this differently anyway --- widgets/account.go | 2 +- widgets/msglist.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets') diff --git a/widgets/account.go b/widgets/account.go index ab32f5de..fa8c524c 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -49,7 +49,7 @@ func NewAccountView(conf *config.AercConfig, acct *config.AccountConfig, dirlist := NewDirectoryList(acct, logger, worker) grid.AddChild(ui.NewBordered(dirlist, ui.BORDER_RIGHT)) - msglist := NewMessageList(logger) + msglist := NewMessageList(conf, logger) grid.AddChild(msglist).At(0, 1) view := &AccountView{ diff --git a/widgets/msglist.go b/widgets/msglist.go index 944bad83..6cf9b972 100644 --- a/widgets/msglist.go +++ b/widgets/msglist.go @@ -23,9 +23,9 @@ type MessageList struct { store atomic.Value // *lib.MessageStore } -// TODO: fish in config -func NewMessageList(logger *log.Logger) *MessageList { +func NewMessageList(conf *config.AercConfig, logger *log.Logger) *MessageList { ml := &MessageList{ + conf: conf, logger: logger, selected: 0, spinner: NewSpinner(), -- cgit