2017-12-31 05:10:13 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2020-10-18 20:15:57 +08:00
|
|
|
"github.com/gdamore/tcell/v2"
|
2017-12-31 05:10:13 +08:00
|
|
|
"github.com/rivo/tview"
|
|
|
|
)
|
|
|
|
|
|
|
|
// End shows the final slide.
|
|
|
|
func End(nextSlide func()) (title string, content tview.Primitive) {
|
2023-08-26 22:19:31 +08:00
|
|
|
textView := tview.NewTextView().
|
|
|
|
SetDynamicColors(true).
|
|
|
|
SetDoneFunc(func(key tcell.Key) {
|
|
|
|
nextSlide()
|
|
|
|
})
|
|
|
|
url := "[:::https://github.com/rivo/tview]https://github.com/rivo/tview"
|
2017-12-31 05:10:13 +08:00
|
|
|
fmt.Fprint(textView, url)
|
2023-08-26 22:19:31 +08:00
|
|
|
return "End", Center(tview.TaggedStringWidth(url), 1, textView)
|
2017-12-31 05:10:13 +08:00
|
|
|
}
|