diff options
author | Kalyan Sriram <coder.kalyan@gmail.com> | 2020-07-27 01:03:55 -0700 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-08-06 21:42:06 +0200 |
commit | 905cb9dfd3ef197bb4b59039a1be76ce2c8e3099 (patch) | |
tree | 2d923c42ec224b1d525d942a7bb17416f4a62dd5 /widgets/account.go | |
parent | 548a5fff68a648a5e0b6fd909e3c21463addc8af (diff) | |
download | aerc-905cb9dfd3ef197bb4b59039a1be76ce2c8e3099.tar.gz |
Implement style configuration.
Introduce the ability to configure stylesets, allowing customization of
aerc's look (color scheme, font weight, etc). Default styleset is
installed to /path/to/aerc/stylesets/default.
Diffstat (limited to 'widgets/account.go')
-rw-r--r-- | widgets/account.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/widgets/account.go b/widgets/account.go index 211f09d7..53c65ba5 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -64,15 +64,14 @@ func NewAccountView(aerc *Aerc, conf *config.AercConfig, acct *config.AccountCon worker, err := worker.NewWorker(acct.Source, logger) if err != nil { - host.SetStatus(fmt.Sprintf("%s: %s", acct.Name, err)). - Color(tcell.ColorDefault, tcell.ColorRed) + host.SetError(fmt.Sprintf("%s: %s", acct.Name, err)) return view } view.worker = worker view.dirlist = NewDirectoryList(conf, acct, logger, worker) if acctUiConf.SidebarWidth > 0 { - view.grid.AddChild(ui.NewBordered(view.dirlist, ui.BORDER_RIGHT)) + view.grid.AddChild(ui.NewBordered(view.dirlist, ui.BORDER_RIGHT, acctUiConf)) } view.msglist = NewMessageList(conf, logger, aerc) |