added terminal styling for header

This commit is contained in:
sq 2021-05-26 12:29:35 -04:00
parent c89316d781
commit 324bfff597
No known key found for this signature in database
GPG Key ID: 7AF3499CBA8E6251
10 changed files with 10 additions and 1 deletions

11
tui.go

@ -196,7 +196,16 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
func (m model) View() string {
// The header
s := m.spinner.View() + " Scanning for devices" + "\n\n"
s := m.spinner.View(
) + lipgloss.NewStyle(
).Bold(true,
).Foreground(lipgloss.Color("#FAFAFA"),
).Background(lipgloss.Color("#7D56F4"),
).PaddingTop(0,
).PaddingLeft(0,
).Width(80,
).Render("Scanning for devices",
) + "\n\n"
// Iterate over our choices
for i, choice := range m.choices {