diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-04 00:08:34 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-04 00:12:23 +1100 |
commit | 31e201ca52a37cb75386931fe8f74911c0b1e528 (patch) | |
tree | 5a5dedb8eb32e80c984b64868e9729b069fc7711 /pkg/gui | |
parent | 0abd7ad6be1e398f4a39c8a8d983e28eaa44d59c (diff) |
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/gui.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 9289c4e31..db3787f7c 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -520,11 +520,13 @@ func (gui *Gui) layout(g *gocui.Gui) error { _, _ = g.SetViewOnBottom("limit") g.DeleteView("limit") + sidePanelWidthRatio := gui.Config.GetUserConfig().GetFloat64("gui.sidePanelWidth") + textColor := theme.GocuiDefaultTextColor var leftSideWidth int switch gui.State.ScreenMode { case SCREEN_NORMAL: - leftSideWidth = width / 3 + leftSideWidth = int(float64(width) * sidePanelWidthRatio) case SCREEN_HALF: leftSideWidth = width / 2 case SCREEN_FULL: |