summaryrefslogtreecommitdiffstats
path: root/pkg/gui/types
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-12-02 12:45:15 +1100
committerStefan Haller <stefan@haller-berlin.de>2023-12-09 11:18:28 +0100
commitb96befa250e276ba853b10b776dfd270a8649946 (patch)
treee5d36371ac47c770607340c540863a1ea37a4d39 /pkg/gui/types
parent8cc820668a7a95f343a9eeca2af13e80d90108cd (diff)
Layout the bottom line view using spacer views
We are also removing the single-character padding on the left/right edges of the bottom line because it's unnecessary Unfortunately we need to create views for each spacer: it's not enough to just layout the existing views with padding inbetween because gocui only renders views meaning if there is no view in a given position, that position will just render whatever was there previously (at least that's what I recall from talking this through with Stefan: I could be way off). Co-authored-by: Stefan Haller <stefan@haller-berlin.de>
Diffstat (limited to 'pkg/gui/types')
-rw-r--r--pkg/gui/types/views.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/types/views.go b/pkg/gui/types/views.go
index 69a79f8a0..867dff92e 100644
--- a/pkg/gui/types/views.go
+++ b/pkg/gui/types/views.go
@@ -34,6 +34,8 @@ type Views struct {
AppStatus *gocui.View
Search *gocui.View
SearchPrefix *gocui.View
+ StatusSpacer1 *gocui.View
+ StatusSpacer2 *gocui.View
Limit *gocui.View
Suggestions *gocui.View
Tooltip *gocui.View