style

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Text     = literalRenderer{lipgloss.NewStyle().Foreground(RegularColor)}
	Bright   = literalRenderer{lipgloss.NewStyle().Foreground(ForegroundColor)}
	Inactive = literalRenderer{lipgloss.NewStyle().Foreground(InactiveColor)}
	Details  = literalRenderer{lipgloss.NewStyle().Foreground(TaskColor)}
	Field    = literalRenderer{lipgloss.NewStyle().Foreground(FieldColor)}
	Title    = literalRenderer{
		lipgloss.NewStyle().
			Border(lipgloss.NormalBorder(), false, false, true, false).
			BorderForeground(InactiveColor).
			Align(lipgloss.Center).
			Foreground(ForegroundColor),
	}
	Info = quoteRenderer{quote.Copy().BorderForeground(AccentColor).Foreground(AccentColor)}
)
View Source
var (
	HelpNotification = notificationRenderer{
		string(tools.INFO_ICON),
		lipgloss.NewStyle().Foreground(RegularColor),
	}
	TaskNotification = notificationRenderer{
		string(tools.LOADING_ICON),
		lipgloss.NewStyle().Foreground(TaskColor),
	}
	ErrorNotification = notificationRenderer{
		string(tools.WARNING_ICON),
		lipgloss.NewStyle().Foreground(ErrorColor),
	}
)
View Source
var AccentColor = lipgloss.AdaptiveColor{Light: "#0959C6", Dark: "#3385FF"}
View Source
var ErrorColor = lipgloss.AdaptiveColor{Light: "#FF2323", Dark: "#FF2323"}
View Source
var FieldColor = lipgloss.AdaptiveColor{Light: "#CA23FF", Dark: "#CA23FF"}
View Source
var ForegroundColor = lipgloss.AdaptiveColor{Light: "#000000", Dark: "#ffffff"}
View Source
var HintColor = lipgloss.AdaptiveColor{Light: "#CECECE", Dark: "#3C3C3C"}
View Source
var InactiveColor = lipgloss.AdaptiveColor{Light: "#A7A7A7", Dark: "#5E5E5E"}
View Source
var RegularColor = lipgloss.AdaptiveColor{Light: "#393939", Dark: "#C0C0C0"}
View Source
var ScrollBackground = Inactive.Render(1, "┃")
View Source
var ScrollForeground = Bright.Render(1, "┃")
View Source
var TaskColor = lipgloss.AdaptiveColor{Light: "#FFD000", Dark: "#FFD000"}

Functions

This section is empty.

Types

type Renderer

type Renderer interface {
	Render(int, ...string) string
	RenderLine(int, ...string) string
}

Jump to

Keyboard shortcuts

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