summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-17 11:52:38 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-17 11:52:38 -0400
commitfcdcd32de7118e1de1f8d94c380a0e80a64265ec (patch)
treea4279dec21c3d81901e23f1081fafad59258e3f5 /widgets
parent89ffd8653dfec30f66875bde71c997b511e2466c (diff)
downloadaerc-fcdcd32de7118e1de1f8d94c380a0e80a64265ec.tar.gz
Remove unimplemented color configuration
Will probably end up doing this differently anyway
Diffstat (limited to 'widgets')
-rw-r--r--widgets/account.go2
-rw-r--r--widgets/msglist.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/widgets/account.go b/widgets/account.go
index ab32f5d..fa8c524 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 944bad8..6cf9b97 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(),