Documentation
¶
Overview ¶
internal/ui/menu.go
Index ¶
- func Footer(styles Styles, activeSection int, width int) string
- func GetPolicyStyle(styles Styles, policy string) lipgloss.Style
- func InsertCursor(line string, selected bool, styles Styles) string
- func InsertCursorRulesSection(line string, selected bool, styles Styles, action string) string
- func TitledBox(title, content string, styles Styles, width int, activeSession bool, ...) string
- type Menu
- type MenuItem
- type Styles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Menu ¶
func (Menu) ExecuteSelected ¶
type Styles ¶
type Styles struct {
Title lipgloss.Style
Subtitle lipgloss.Style
ActiveStatus lipgloss.Style
InactiveStatus lipgloss.Style
StatusLabel lipgloss.Style
SectionBorder lipgloss.Style
SectionTitle lipgloss.Style
SectionBorderActive lipgloss.Style
ActiveCursorPointer lipgloss.Style
Menu lipgloss.Style
AllowPolicy lipgloss.Style
DenyPolicy lipgloss.Style
RejectPolicy lipgloss.Style
Label lipgloss.Style
Value lipgloss.Style
Error lipgloss.Style
}
Click to show internal directories.
Click to hide internal directories.