Fix resetting background color via '-'
The primitive background color is now used, rather than the terminal background color. Resolves #47.
This commit is contained in:
parent
919f229dcc
commit
92dca67ac2
|
@ -1,6 +1,8 @@
|
|||
v1.5.6 (WIP)
|
||||
- Draw additional accents when rendering a list divider
|
||||
- Update List, Table and TreeView to not handle Tab or Backtab
|
||||
- When resetting color with "-" tag, set background color to primitive
|
||||
background color, rather than the terminal background color
|
||||
|
||||
v1.5.5 (2020-05-24)
|
||||
- Fix Application.Suspend by restructuring event loop (queued updates will now only run between draws)
|
||||
|
|
|
@ -67,10 +67,10 @@ func main() {
|
|||
```
|
||||
|
||||
Examples are available via [godoc](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview#pkg-examples)
|
||||
and in the "demos" subdirectory.
|
||||
and in the [demos](https://code.rocketnine.space/tslocum/cview/src/branch/master/demos) subdirectory.
|
||||
|
||||
For a presentation highlighting the features of this package, compile and run
|
||||
the program in the "demos/presentation" subdirectory.
|
||||
the program in the [demos/presentation](https://code.rocketnine.space/tslocum/cview/src/branch/master/demos/presentation) subdirectory.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
|
|
@ -1083,7 +1083,7 @@ func (t *TextView) Draw(screen tcell.Screen) {
|
|||
}
|
||||
|
||||
// Draw the buffer.
|
||||
defaultStyle := tcell.StyleDefault.Foreground(t.textColor)
|
||||
defaultStyle := tcell.StyleDefault.Foreground(t.textColor).Background(t.backgroundColor)
|
||||
for line := t.lineOffset; line < len(t.index); line++ {
|
||||
// Are we done?
|
||||
if line-t.lineOffset >= height {
|
||||
|
|
Loading…
Reference in New Issue