summary refs log tree commit diff stats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-15 20:40:28 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-15 20:40:28 -0400
commita729179f9fae4a89a0b65984263a7893fcab874a (patch)
treeed7dc46f8f1469513805d13a160fece944484637 /widgets/aerc.go
parentf406bf5a3bb953426a00f2feac1f2863a29ab269 (diff)
downloadaerc-a729179f9fae4a89a0b65984263a7893fcab874a.tar.gz
Implement sidebar-width config option
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index e7f4583..6874600 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))