Documentation ¶
Index ¶
- Constants
- type NoticeLevel
- type Theme
- func (t Theme) Box() lipgloss.Style
- func (t Theme) Collection() lipgloss.Style
- func (t Theme) EntityView() lipgloss.Style
- func (t Theme) ListItemStyles() list.DefaultItemStyles
- func (t Theme) ListStyles() list.Styles
- func (t Theme) LoggerStyles() *log.Styles
- func (t Theme) MarkdownStyleJSON() (string, error)
- func (t Theme) RenderBold(text string) string
- func (t Theme) RenderEmphasis(text string) string
- func (t Theme) RenderError(text string) string
- func (t Theme) RenderFooter(text string, width int) string
- func (t Theme) RenderHeader(appName, ctxKey, ctxVal string, width int) string
- func (t Theme) RenderInContainer(text string) string
- func (t Theme) RenderInfo(text string) string
- func (t Theme) RenderInputForm(text string) string
- func (t Theme) RenderNotice(notice string, lvl NoticeLevel) string
- func (t Theme) RenderSuccess(text string) string
- func (t Theme) RenderUnknown(text string) string
- func (t Theme) RenderWarning(text string) string
- func (t Theme) Spinner() lipgloss.Style
Constants ¶
View Source
const ( HeaderHeight = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoticeLevel ¶ added in v0.0.9
type NoticeLevel string
const ( NoticeLevelSuccess NoticeLevel = "success" NoticeLevelInfo NoticeLevel = "info" NoticeLevelWarning NoticeLevel = "warning" NoticeLevelError NoticeLevel = "error" )
type Theme ¶
type Theme struct { SpinnerType spinner.Spinner BodyColor lipgloss.AdaptiveColor EmphasisColor lipgloss.AdaptiveColor BorderColor lipgloss.AdaptiveColor PrimaryColor lipgloss.AdaptiveColor SecondaryColor lipgloss.AdaptiveColor TertiaryColor lipgloss.AdaptiveColor SuccessColor lipgloss.AdaptiveColor WarningColor lipgloss.AdaptiveColor ErrorColor lipgloss.AdaptiveColor InfoColor lipgloss.AdaptiveColor White lipgloss.AdaptiveColor Gray lipgloss.AdaptiveColor Black lipgloss.AdaptiveColor }
func EverforestTheme ¶ added in v0.0.9
func EverforestTheme() Theme
EverforestTheme Uses the colors from the Everforest color scheme See https://gogh-co.github.io/Gogh/
func (Theme) Collection ¶
func (Theme) EntityView ¶
func (Theme) ListItemStyles ¶
func (t Theme) ListItemStyles() list.DefaultItemStyles
func (Theme) ListStyles ¶
func (Theme) LoggerStyles ¶
func (Theme) MarkdownStyleJSON ¶
func (Theme) RenderBold ¶
func (Theme) RenderEmphasis ¶ added in v0.0.9
func (Theme) RenderError ¶
func (Theme) RenderFooter ¶ added in v0.0.9
func (Theme) RenderHeader ¶ added in v0.0.9
func (Theme) RenderInContainer ¶
func (Theme) RenderInfo ¶
func (Theme) RenderInputForm ¶
func (Theme) RenderNotice ¶ added in v0.0.9
func (t Theme) RenderNotice(notice string, lvl NoticeLevel) string
func (Theme) RenderSuccess ¶
func (Theme) RenderUnknown ¶
func (Theme) RenderWarning ¶
Click to show internal directories.
Click to hide internal directories.