styles

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderHeight = 3
	FooterHeight = 2
)

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) Box added in v0.0.4

func (t Theme) Box() lipgloss.Style

func (Theme) Collection

func (t Theme) Collection() lipgloss.Style

func (Theme) EntityView

func (t Theme) EntityView() lipgloss.Style

func (Theme) ListItemStyles

func (t Theme) ListItemStyles() list.DefaultItemStyles

func (Theme) ListStyles

func (t Theme) ListStyles() list.Styles

func (Theme) LoggerStyles

func (t Theme) LoggerStyles() *log.Styles

func (Theme) MarkdownStyleJSON

func (t Theme) MarkdownStyleJSON() (string, error)

func (Theme) RenderBold

func (t Theme) RenderBold(text string) string

func (Theme) RenderEmphasis added in v0.0.9

func (t Theme) RenderEmphasis(text string) string

func (Theme) RenderError

func (t Theme) RenderError(text string) string

func (Theme) RenderFooter added in v0.0.9

func (t Theme) RenderFooter(text string, width int) string

func (Theme) RenderHeader added in v0.0.9

func (t Theme) RenderHeader(appName, ctxKey, ctxVal string, width int) string

func (Theme) RenderInContainer

func (t Theme) RenderInContainer(text string) string

func (Theme) RenderInfo

func (t Theme) RenderInfo(text string) string

func (Theme) RenderInputForm

func (t Theme) RenderInputForm(text string) string

func (Theme) RenderNotice added in v0.0.9

func (t Theme) RenderNotice(notice string, lvl NoticeLevel) string

func (Theme) RenderSuccess

func (t Theme) RenderSuccess(text string) string

func (Theme) RenderUnknown

func (t Theme) RenderUnknown(text string) string

func (Theme) RenderWarning

func (t Theme) RenderWarning(text string) string

func (Theme) Spinner

func (t Theme) Spinner() lipgloss.Style

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL