views

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Green       = lipgloss.AdaptiveColor{Light: "#23cc71", Dark: "#23cc71"}
	Blue        = lipgloss.AdaptiveColor{Light: "#017ffe", Dark: "#017ffe"}
	Yellow      = lipgloss.AdaptiveColor{Light: "#d4ed2d", Dark: "#d4ed2d"}
	Cyan        = lipgloss.AdaptiveColor{Light: "#3ef7e5", Dark: "#3ef7e5"}
	DimmedGreen = lipgloss.AdaptiveColor{Light: "#7be0a9", Dark: "#7be0a9"}
	Orange      = lipgloss.AdaptiveColor{Light: "#e3881b", Dark: "#e3881b"}
	Light       = lipgloss.AdaptiveColor{Light: "#000", Dark: "#fff"}
	Dark        = lipgloss.AdaptiveColor{Light: "#fff", Dark: "#000"}
	Gray        = lipgloss.AdaptiveColor{Light: "243", Dark: "243"}
	LightGray   = lipgloss.AdaptiveColor{Light: "#828282", Dark: "#828282"}
)
View Source
var (
	BaseTableStyleHorizontalPadding = 4
	BaseTableStyle                  = lipgloss.NewStyle().
									PaddingLeft(BaseTableStyleHorizontalPadding).
									PaddingRight(BaseTableStyleHorizontalPadding).
									PaddingTop(1).
									Margin(1, 0)

	NameStyle           = lipgloss.NewStyle().Foreground(Light)
	ActiveStyle         = lipgloss.NewStyle().Foreground(Green)
	InactiveStyle       = lipgloss.NewStyle().Foreground(Orange)
	DefaultRowDataStyle = lipgloss.NewStyle().Foreground(Gray)
	BaseCellStyle       = lipgloss.NewRenderer(os.Stdout).NewStyle().Padding(0, 4, 1, 0)
	TableHeaderStyle    = BaseCellStyle.Copy().Foreground(LightGray).Bold(false).Padding(0).MarginRight(4)
)
View Source
var BasicLayout = lipgloss.
	NewStyle().
	Margin(1, 0).
	PaddingLeft(2)
View Source
var CheckmarkSymbol = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).SetString("✓")
View Source
var DefaultHorizontalMargin = 1
View Source
var DefaultLayoutMarginTop = 1
View Source
var DefaultListFooterPadding = &Padding{Left: 2}
View Source
var DocStyle = lipgloss.
	NewStyle().
	Margin(3, 2, 1, 2).
	Padding(1, 2)
View Source
var LogPrefixColors = []lipgloss.AdaptiveColor{
	Blue, Yellow, Orange, Cyan,
}
View Source
var SeparatorString = lipgloss.NewStyle().Foreground(LightGray).Render("===")
View Source
var TUITableMinimumWidth = 80

Functions

func GetBoldedInfoMessage added in v0.13.0

func GetBoldedInfoMessage(message string) string

func GetBorderedMessage added in v0.13.0

func GetBorderedMessage(message string) string

func GetContainerBreakpointWidth added in v0.13.0

func GetContainerBreakpointWidth(terminalWidth int) int

func GetCustomTheme

func GetCustomTheme() *huh.Theme

func GetEnvVarsInput added in v0.15.0

func GetEnvVarsInput(envVars *map[string]string) *huh.Text

func GetInfoMessage added in v0.13.0

func GetInfoMessage(message string) string

func GetInitialCommandTheme added in v0.13.0

func GetInitialCommandTheme() *huh.Theme

func GetListFooter added in v0.13.0

func GetListFooter(profileName string, padding *Padding) string

func GetListLine added in v0.13.0

func GetListLine(message string) string

func GetPropertyKey added in v0.13.0

func GetPropertyKey(key string) string

func GetStyledMainTitle added in v0.13.0

func GetStyledMainTitle(content string) string

func GetStyledSelectList

func GetStyledSelectList(items []list.Item) list.Model

func RenderBorderedMessage added in v0.13.0

func RenderBorderedMessage(message string)

func RenderContainerLayout added in v0.13.0

func RenderContainerLayout(output string)

func RenderCreationInfoMessage added in v0.13.0

func RenderCreationInfoMessage(message string)

func RenderInfoMessage added in v0.13.0

func RenderInfoMessage(message string)

func RenderInfoMessageBold added in v0.13.0

func RenderInfoMessageBold(message string)

func RenderLine added in v0.13.0

func RenderLine(message string)

func RenderListLine added in v0.13.0

func RenderListLine(message string)

func RenderMainTitle added in v0.13.0

func RenderMainTitle(title string)

Types

type Padding added in v0.23.0

type Padding struct {
	Top    int
	Right  int
	Bottom int
	Left   int
}

Directories

Path Synopsis
projectconfig
workspace

Jump to

Keyboard shortcuts

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