Skip to content

Commit

Permalink
bold
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k committed Aug 18, 2024
1 parent 12e86d4 commit 0715ee6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/io/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,12 @@ func (u *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}

func (u *UI) View() string {
bold := color.New(color.Bold)

s := color.CyanString("? ")

for _, header := range u.Headers {
s += color.New(color.Bold).Sprintln(header)
s += bold.Sprintln(header)
}

if u.isEntered {
Expand All @@ -125,10 +127,10 @@ func (u *UI) View() string {

cursor := " " // no cursor
if u.Cursor == i {
cursor = color.CyanString(">") // cursor!
cursor = color.CyanString(bold.Sprint(">")) // cursor!
}

checked := "[ ]" // not selected
checked := bold.Sprint("[ ]") // not selected
if _, ok := u.Selected[i]; ok {
checked = color.GreenString("[x]") // selected!
}
Expand Down

0 comments on commit 0715ee6

Please sign in to comment.