mirror of https://github.com/rivo/tview.git
Minor text change in presentation. Hopefully makes it more clear what's displayed.
This commit is contained in:
parent
7afc7ac893
commit
bb80ad41aa
|
@ -103,7 +103,7 @@ func TextView2(nextSlide func()) (title string, content tview.Primitive) {
|
||||||
codeView := tview.NewTextView().
|
codeView := tview.NewTextView().
|
||||||
SetWrap(false)
|
SetWrap(false)
|
||||||
fmt.Fprint(codeView, textView2)
|
fmt.Fprint(codeView, textView2)
|
||||||
codeView.SetBorder(true).SetTitle("TextView content")
|
codeView.SetBorder(true).SetTitle("Buffer content")
|
||||||
|
|
||||||
textView := tview.NewTextView()
|
textView := tview.NewTextView()
|
||||||
textView.SetDynamicColors(true).
|
textView.SetDynamicColors(true).
|
||||||
|
@ -141,7 +141,7 @@ func TextView2(nextSlide func()) (title string, content tview.Primitive) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
fmt.Fprint(textView, textView2)
|
fmt.Fprint(textView, textView2)
|
||||||
textView.SetBorder(true).SetTitle("TextView code")
|
textView.SetBorder(true).SetTitle("TextView output")
|
||||||
return "Text 2", tview.NewFlex().
|
return "Text 2", tview.NewFlex().
|
||||||
AddItem(textView, 0, 1, true).
|
AddItem(textView, 0, 1, true).
|
||||||
AddItem(codeView, 0, 1, false)
|
AddItem(codeView, 0, 1, false)
|
||||||
|
|
Loading…
Reference in New Issue