From 88dbb6a45353e0bec2fcf60e1d49e4743eb50650 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Wed, 21 Feb 2018 10:39:19 -0800 Subject: [PATCH] Fixed theme bg color missing spots --- README.md | 1 - termui/grid.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 7870fb7..79b450d 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,6 @@ Feel free to add a new one. You can use 256 colors, bold, underline, and reverse - zooming in and out of graphs - add gif - gopsutil issue for darwin i386 - - grid should create a filled buffer so that bg is written everywhere * cleaning up code - termui Blocks should ignore writing to the outside area - Ignore writes to outside of inner area, or give error? diff --git a/termui/grid.go b/termui/grid.go index 052cd03..b0eb7e4 100644 --- a/termui/grid.go +++ b/termui/grid.go @@ -44,7 +44,7 @@ func (g *Grid) Resize() { // Buffer implements Bufferer interface. func (g *Grid) Buffer() *Buffer { - buf := NewBuffer() + buf := NewFilledBuffer(0, 0, g.Width, g.Height, Cell{' ', ColorDefault, Theme.Bg}) for _, w := range g.Widgets { buf.MergeWithOffset(w.Buffer(), w.GetXOffset(), w.GetYOffset()) }