added terminal styling for header
This commit is contained in:
parent
c89316d781
commit
324bfff597
0
.logs/2021-05-26T16:24:41Z.log
Normal file
0
.logs/2021-05-26T16:24:41Z.log
Normal file
0
.logs/2021-05-26T16:26:19Z.log
Normal file
0
.logs/2021-05-26T16:26:19Z.log
Normal file
0
.logs/2021-05-26T16:26:29Z.log
Normal file
0
.logs/2021-05-26T16:26:29Z.log
Normal file
0
.logs/2021-05-26T16:27:16Z.log
Normal file
0
.logs/2021-05-26T16:27:16Z.log
Normal file
0
.logs/2021-05-26T16:27:27Z.log
Normal file
0
.logs/2021-05-26T16:27:27Z.log
Normal file
0
.logs/2021-05-26T16:28:10Z.log
Normal file
0
.logs/2021-05-26T16:28:10Z.log
Normal file
0
.logs/2021-05-26T16:28:21Z.log
Normal file
0
.logs/2021-05-26T16:28:21Z.log
Normal file
0
.logs/2021-05-26T16:28:45Z.log
Normal file
0
.logs/2021-05-26T16:28:45Z.log
Normal file
0
.logs/2021-05-26T16:28:57Z.log
Normal file
0
.logs/2021-05-26T16:28:57Z.log
Normal file
11
tui.go
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user