Documentation
¶
Index ¶
- Variables
- func DeviceList(devices []adb.Device, cursor int) string
- func FileList(files []adb.FileEntry, cursor int) string
- func Help(key, desc string) string
- func KeyValueList(rows []KeyValueRow) string
- func RenderHeader(appState *state.AppState, screenName string) string
- func RenderLayout(state *state.AppState, title, content, footer string) string
- func RenderLayoutWithScrollableSection(state *state.AppState, props LayoutWithScrollProps) string
- func RenderNoDevice(state *state.AppState, title string) string
- func RenderOverlay(base, overlay string, s *state.AppState) string
- func UpdateViewport(screenTitle string, msg tea.Msg) tea.Cmd
- func ViewportEnsureVisible(screenTitle string, line int)
- func ViewportGotoBottom(screenTitle string)
- func ViewportGotoTop(screenTitle string)
- type ConfirmNoMsg
- type ConfirmPrompt
- type ConfirmYesMsg
- type FormCancelMsg
- type FormField
- type FormModal
- type FormSubmitMsg
- type KeyValueRow
- type LayoutWithScrollProps
- type Toast
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Primary = lipgloss.Color("#00D7FF") Success = lipgloss.Color("#10B981") Warning = lipgloss.Color("#F59E0B") Error = lipgloss.Color("#EF4444") Muted = lipgloss.Color("#6B7280") Border = lipgloss.Color("#374151") HeaderStyle = lipgloss.NewStyle(). Bold(true). Foreground(Primary). BorderStyle(lipgloss.RoundedBorder()). BorderForeground(Border). Padding(0, 2). Align(lipgloss.Center) ContentStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.RoundedBorder()). BorderForeground(Border). Padding(1, 2) TitleStyle = lipgloss.NewStyle(). Bold(true). Foreground(Primary) ListItemStyle = lipgloss.NewStyle(). PaddingLeft(2) ListItemSelectedStyle = lipgloss.NewStyle(). Foreground(Primary). Bold(true). PaddingLeft(1) StatusConnected = lipgloss.NewStyle(). Foreground(Success). Bold(true) StatusDisconnected = lipgloss.NewStyle(). Foreground(Error). Bold(true) StatusMuted = lipgloss.NewStyle(). Foreground(Muted) Foreground(Muted). Padding(0, 2) HelpKeyStyle = lipgloss.NewStyle(). Foreground(Primary). Bold(true) HelpDescStyle = lipgloss.NewStyle(). Foreground(Muted) ErrorStyle = lipgloss.NewStyle(). Foreground(Error). Bold(true) LogVerbose = lipgloss.NewStyle().Foreground(Muted) LogDebug = lipgloss.NewStyle().Foreground(Primary) LogInfo = lipgloss.NewStyle().Foreground(Success) LogWarn = lipgloss.NewStyle().Foreground(Warning) LogError = lipgloss.NewStyle().Foreground(Error) LogFatal = lipgloss.NewStyle().Foreground(Error).Bold(true) WarningStyle = lipgloss.NewStyle(). Foreground(Warning). Bold(true) )
Functions ¶
func KeyValueList ¶
func KeyValueList(rows []KeyValueRow) string
func RenderLayoutWithScrollableSection ¶
func RenderLayoutWithScrollableSection(state *state.AppState, props LayoutWithScrollProps) string
func ViewportEnsureVisible ¶
func ViewportGotoBottom ¶
func ViewportGotoBottom(screenTitle string)
func ViewportGotoTop ¶
func ViewportGotoTop(screenTitle string)
Types ¶
type ConfirmNoMsg ¶
type ConfirmNoMsg struct{}
type ConfirmPrompt ¶
func (*ConfirmPrompt) Hide ¶
func (c *ConfirmPrompt) Hide()
func (*ConfirmPrompt) Show ¶
func (c *ConfirmPrompt) Show(message string)
func (*ConfirmPrompt) View ¶
func (c *ConfirmPrompt) View() string
type ConfirmYesMsg ¶
type ConfirmYesMsg struct{}
type FormCancelMsg ¶
type FormCancelMsg struct{}
type FormSubmitMsg ¶
type FormSubmitMsg struct {
Values []string
}
type KeyValueRow ¶
type LayoutWithScrollProps ¶
Click to show internal directories.
Click to hide internal directories.