style

package
v0.0.0-...-f07ee0b Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NormalColor1   = lipgloss.AdaptiveColor{Light: "#1a1a1a", Dark: "#aaaaaa"}
	NormalColor2   = lipgloss.AdaptiveColor{Light: "#3a3a3a", Dark: "#888888"}
	SelectedColor1 = lipgloss.AdaptiveColor{Light: "#444444", Dark: "#ffffff"}
	SelectedColor2 = lipgloss.AdaptiveColor{Light: "#666666", Dark: "#dddddd"}
	ExtraDimColor  = lipgloss.AdaptiveColor{Light: "#bbbbbb", Dark: "#444444"}
	DimmedColor1   = lipgloss.AdaptiveColor{Light: "#999999", Dark: "#777777"}
	DimmedColor2   = lipgloss.AdaptiveColor{Light: "#aaaaaa", Dark: "#666666"}

	NormalTitle     = lipgloss.NewStyle().Foreground(NormalColor1)
	NormalParagraph = lipgloss.NewStyle().Foreground(NormalColor2)

	SelectedTitle     = lipgloss.NewStyle().Foreground(SelectedColor1)
	SelectedParagraph = lipgloss.NewStyle().Foreground(SelectedColor2)

	DimmedTitle     = lipgloss.NewStyle().Foreground(DimmedColor1)
	ExtraDimTitle   = lipgloss.NewStyle().Foreground(ExtraDimColor)
	DimmedParagraph = lipgloss.NewStyle().Foreground(DimmedColor2)

	ActiveButton = lipgloss.NewStyle().
					BorderStyle(lipgloss.RoundedBorder()).
					BorderForeground(NormalColor1).
					Foreground(NormalColor1)
	FocusButton = lipgloss.NewStyle().
				BorderStyle(lipgloss.RoundedBorder()).
				BorderForeground(SelectedColor1).
				Foreground(SelectedColor1)
	NormalButton = lipgloss.NewStyle().
					BorderStyle(lipgloss.RoundedBorder()).
					BorderForeground(DimmedColor1).
					Foreground(DimmedColor1)

	ActiveButtonNode = lipgloss.NewStyle().
						PaddingLeft(1).
						Foreground(NormalColor1)
	FocusButtonNode = lipgloss.NewStyle().
					Border(lipgloss.RoundedBorder(), false, false, false, true).
					BorderForeground(SelectedColor1).
					Foreground(SelectedColor1).
					Padding(0)
	NormalButtonNode = lipgloss.NewStyle().
						PaddingLeft(1).
						Foreground(DimmedColor1)
)

Functions

This section is empty.

Types

type BoxWithLabel

type BoxWithLabel struct {
	BoxStyle   lipgloss.Style
	LabelStyle lipgloss.Style
}

func NewDefaultBoxWithLabel

func NewDefaultBoxWithLabel() BoxWithLabel

func (BoxWithLabel) Render

func (b BoxWithLabel) Render(label, content string, width int) string

Jump to

Keyboard shortcuts

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