MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / NewHeader

Function NewHeader

internal/ui/components/header.go:31–42  ·  view source on GitHub ↗

NewHeader creates a new application header.

()

Source from the content-addressed store, hash-verified

29
30// NewHeader creates a new application header.
31func NewHeader() *Header {
32 header := tview.NewTextView()
33 header.SetTextAlign(tview.AlignCenter)
34 header.SetText("pvetui")
35 header.SetDynamicColors(true)
36 header.SetBackgroundColor(theme.Colors.Header)
37 header.SetTextColor(theme.Colors.HeaderText)
38
39 return &Header{
40 TextView: header,
41 }
42}
43
44// SetApp sets the application reference for UI updates.
45func (h *Header) SetApp(app *tview.Application) {

Callers 1

NewAppFunction · 0.85

Calls 3

SetBackgroundColorMethod · 0.80
SetTextColorMethod · 0.80
SetTextMethod · 0.45

Tested by

no test coverage detected