From a729179f9fae4a89a0b65984263a7893fcab874a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 15 Mar 2019 20:40:28 -0400 Subject: Implement sidebar-width config option --- widgets/aerc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'widgets/aerc.go') diff --git a/widgets/aerc.go b/widgets/aerc.go index e7f45831..6874600c 100644 --- a/widgets/aerc.go +++ b/widgets/aerc.go @@ -26,11 +26,10 @@ func NewAerc(conf *config.AercConfig, logger *log.Logger, {libui.SIZE_EXACT, 1}, {libui.SIZE_WEIGHT, 1}, }).Columns([]libui.GridSpec{ - {libui.SIZE_EXACT, 20}, + {libui.SIZE_EXACT, conf.Ui.SidebarWidth}, {libui.SIZE_WEIGHT, 1}, }) - // TODO: Grab sidebar size from config and via :set command mainGrid.AddChild(libui.NewText("aerc"). Strategy(libui.TEXT_CENTER). Color(tcell.ColorBlack, tcell.ColorWhite)) -- cgit