Skip to content

Commit

Permalink
feat: charm theme is the default
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Oct 24, 2023
1 parent 05c678f commit df6c2cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion field_note.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ func (n *Note) View() string {
sb.WriteString(md)
if n.showNextButton {
sb.WriteString(styles.Next.Render("Next"))
sb.WriteString("\n")
}
return styles.Base.Render(strings.TrimSpace(sb.String()))
return styles.Base.Render(sb.String())
}

// Run runs an accessible note field.
Expand Down
2 changes: 1 addition & 1 deletion form.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func NewForm(groups ...*Group) *Form {
return &Form{
groups: groups,
paginator: p,
theme: NewBaseTheme(),
theme: NewCharmTheme(),
}
}

Expand Down
1 change: 1 addition & 0 deletions theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func NewCharmTheme() *Theme {
f.UnselectedPrefix = lipgloss.NewStyle().SetString("[ ] ")
f.UnselectedOption.Foreground(lipgloss.Color("7"))
f.FocusedButton.Foreground(lipgloss.Color("#ffffd7")).Background(lipgloss.Color("212"))
f.Next.Foreground(lipgloss.Color("#ffff87")).Background(lipgloss.Color("212")).MarginLeft(2).Padding(0, 1)
f.BlurredButton.Foreground(lipgloss.Color("7")).Background(lipgloss.Color("0"))

f.TextInput.Cursor.Foreground(lipgloss.Color("212"))
Expand Down

0 comments on commit df6c2cf

Please sign in to comment.