Skip to content
Snippets Groups Projects

V.0.1.0 Codename Threadbare

Closed Ghost User requested to merge v.0.1.0-codename-threadbare into master
3 files
+ 61
13
Compare changes
  • Side-by-side
  • Inline
Files
3
package views
import (
"github.com/rivo/tview"
)
import "github.com/rivo/tview"
var goSDNAscii string = ` ____ ____ _ _
__ _ ___/ ___|| _ \| \ | |
@@ -12,23 +10,23 @@ var goSDNAscii string = ` ____ ____ _ _
|___/ `
type HeaderView struct {
statusView *tview.Flex
headerFlex *tview.Flex
titleView *tview.TextView
}
func NewHeaderView() *HeaderView {
//TODO: change to uses FlexBox if there is more to display in the header
sv := &HeaderView{
hv := &HeaderView{
titleView: tview.NewTextView(),
}
sv.titleView.
hv.titleView.
SetText(goSDNAscii).
SetTextAlign(tview.AlignCenter).
SetBorder(true)
return sv
return hv
}
func (sv *HeaderView) GetContent() tview.Primitive {
return sv.titleView
func (hv *HeaderView) GetContent() tview.Primitive {
return hv.titleView
}
Loading