diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-16 12:06:54 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-16 12:27:32 +0900 |
commit | 8e2e63f9b9e7fb2a9f4c58ebc18c5d8a0b4924fe (patch) | |
tree | d6305ca90ebb03822df50071ef41f879a5978943 /src/tui | |
parent | f96173cbe4129124e6cbf66804e06dbabc9066c3 (diff) |
Propertly fill window with background color
Close #805
Diffstat (limited to 'src/tui')
-rw-r--r-- | src/tui/tui.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tui/tui.go b/src/tui/tui.go index fd4a21e3..c8bd5fbc 100644 --- a/src/tui/tui.go +++ b/src/tui/tui.go @@ -175,6 +175,10 @@ type ColorTheme struct { Border Color } +func (t *ColorTheme) HasBg() bool { + return t.Bg != colDefault +} + type Event struct { Type int Char rune |