Document Box.SetBackgroundTransparent

This commit is contained in:
Trevor Slocum 2020-05-24 10:29:12 -07:00
parent eafc5b33a2
commit 093fa4d2ee
2 changed files with 10 additions and 0 deletions

View File

@ -38,6 +38,12 @@ tview [blocks until the queued function returns](https://github.com/rivo/tview/b
All clicks are handled as single clicks until an interval is set with [Application.SetDoubleClickInterval](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#Application.SetDoubleClickInterval).
## All primitives have non-transparent backgrounds by default
Setting background colors to `tcell.ColorDefault` is insufficient. Call
`SetBackgroundTransparent(true)` to enable background transparency. See
[#15](https://gitlab.com/tslocum/cview/-/issues/15) for more info.
## Lists and Forms do not wrap around by default
Call `SetWrapAround(true)` to wrap around when navigating.

4
doc.go
View File

@ -137,6 +137,10 @@ character that may be used in color or region tags will be recognized. Examples:
You can use the Escape() function to insert brackets automatically where needed.
Note that setting the background color of a primitive to tcell.ColorDefault is
insufficient to achieve transparency (having one or more widgets behind another
widget). Call SetBackgroundTransparent to enable transparency.
Styles
When primitives are instantiated, they are initialized with colors taken from