mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-08-21 03:55:48 +02:00
5f99fa7521
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
22 lines
733 B
Go
22 lines
733 B
Go
package bubbles
|
|
|
|
import (
|
|
"charm.land/bubbles/v2/help"
|
|
"charm.land/lipgloss/v2"
|
|
|
|
"github.com/anotherhadi/ilovetui/style"
|
|
)
|
|
|
|
// NewHelp returns a help.Model styled with the active theme.
|
|
func NewHelp() help.Model {
|
|
h := help.New()
|
|
h.Styles.ShortKey = lipgloss.NewStyle().Foreground(style.S.Primary)
|
|
h.Styles.ShortDesc = lipgloss.NewStyle().Foreground(style.S.Muted)
|
|
h.Styles.ShortSeparator = lipgloss.NewStyle().Foreground(style.S.Subtle)
|
|
h.Styles.FullKey = lipgloss.NewStyle().Foreground(style.S.Primary)
|
|
h.Styles.FullDesc = lipgloss.NewStyle().Foreground(style.S.Muted)
|
|
h.Styles.FullSeparator = lipgloss.NewStyle().Foreground(style.S.Subtle)
|
|
h.Styles.Ellipsis = lipgloss.NewStyle().Foreground(style.S.Subtle)
|
|
return h
|
|
}
|