Documentation ¶
Index ¶
Constants ¶
View Source
const ( ShortCutKeyColor = "#47A4AC" ShortCutDescColor = "#BAEBDA" )
View Source
const ( UIWidth = 79 SummaryPageSize = 10 DetailPageSize = 16 ColorError = "#CF002E" ColorDetailTitle = "#DE3E93" ColorPromptBorder = "#DE3E93" ColorTextLightGray = "#FFFDF5" ColorLogo = "#FFDF80" ColorTableBorder = "#47A4AC" ColorTableText = "#BAEBDA" )
Variables ¶
View Source
var BlurredStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(ColorTableText))
View Source
var DeleteStyle = lipgloss.NewStyle(). Margin(1, 1). Padding(1, 2). Foreground(lipgloss.Color(ColorPromptBorder)). Align(lipgloss.Center). Border(lipgloss.RoundedBorder(), true, true, true, true). BorderForeground(lipgloss.Color(ColorPromptBorder)). Render
View Source
var ErrStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(ColorError)).Render
View Source
var FocusedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(ColorPromptBorder))
View Source
var InputStyle = lipgloss.NewStyle(). Margin(1, 1). Padding(1, 2). Border(lipgloss.RoundedBorder(), true, true, true, true). BorderForeground(lipgloss.Color(ColorPromptBorder)). Render
View Source
var InputTitleStyle = lipgloss.NewStyle(). Width(defaultInputWidth). Foreground(lipgloss.Color(ColorTextLightGray)). Background(lipgloss.Color(ColorDetailTitle)). Padding(0, 1). Align(lipgloss.Center)
View Source
var LogoStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color(ColorLogo)). Padding(0, 1)
View Source
var NoStyle = lipgloss.NewStyle()
View Source
var ShortcutDescStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color(ShortCutDescColor))
View Source
var ShortcutKeyStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color(ShortCutKeyColor))
View Source
var TableStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color(ColorTableText)). BorderForeground(lipgloss.Color(ColorTableBorder)). Align(lipgloss.Right)
Functions ¶
func ShortcutRow ¶
Types ¶
type AddPrompt ¶
type AddPrompt struct { State util2.PromptState Result util2.InputResult // contains filtered or unexported fields }
type DeletePrompt ¶
func NewDeletePrompt ¶
func NewDeletePrompt(txt string) DeletePrompt
func (DeletePrompt) Init ¶
func (m DeletePrompt) Init() tea.Cmd
func (DeletePrompt) View ¶
func (m DeletePrompt) View() string
Click to show internal directories.
Click to hide internal directories.