aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/account.go2
-rw-r--r--widgets/aerc.go3
2 files changed, 2 insertions, 3 deletions
diff --git a/widgets/account.go b/widgets/account.go
index f7b9f69..ecccd1b 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -41,7 +41,7 @@ func NewAccountView(conf *config.AercConfig, acct *config.AccountConfig,
{ui.SIZE_WEIGHT, 1},
{ui.SIZE_EXACT, 1},
}).Columns([]ui.GridSpec{
- {ui.SIZE_EXACT, 20},
+ {ui.SIZE_EXACT, conf.Ui.SidebarWidth},
{ui.SIZE_WEIGHT, 1},
})
grid.AddChild(statusbar).At(1, 1)
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))