Documentation
¶
Index ¶
Constants ¶
View Source
const ( SymbolSuccess = "✓" SymbolError = "✗" SymbolWarning = "⚠" SymbolInfo = "ℹ" SymbolSelected = "▸" SymbolArrow = "→" SymbolBullet = "•" SymbolCheck = "☑" SymbolUncheck = "☐" )
Symbols and icons
Variables ¶
View Source
var ( // Primary Proxmox color ProxmoxOrange = tcell.NewRGBColor(229, 112, 0) // #E57000 // Neutral colors ProxmoxDark = tcell.NewRGBColor(40, 40, 40) // #282828 ProxmoxGray = tcell.NewRGBColor(128, 128, 128) // #808080 ProxmoxLight = tcell.NewRGBColor(200, 200, 200) // #C8C8C8 // Status colors SuccessGreen = tcell.NewRGBColor(34, 197, 94) // #22C55E ErrorRed = tcell.NewRGBColor(239, 68, 68) // #EF4444 WarningYellow = tcell.NewRGBColor(234, 179, 8) // #EAB308 InfoBlue = tcell.NewRGBColor(59, 130, 246) // #3B82F6 // Additional UI colors White = tcell.ColorWhite Black = tcell.ColorBlack LightGray = tcell.ColorLightGray DarkGray = tcell.ColorDarkGray )
Proxmox color palette
Functions ¶
func BuildScreen ¶ added in v0.17.0
func BuildScreen(spec ScreenSpec, content tview.Primitive) tview.Primitive
func SetAbortContext ¶ added in v0.12.6
SetAbortContext registers a process-wide context used to stop any running TUI app (tview) when the context is canceled (e.g. Ctrl+C).
This is intentionally global so all TUIs behave consistently without each wizard needing bespoke signal handling.
func StatusColor ¶
StatusColor returns the appropriate color for a status
func StatusSymbol ¶
StatusSymbol returns the appropriate symbol for a status
Types ¶
type App ¶
type App struct {
*tview.Application
// contains filtered or unexported fields
}
App wraps tview.Application with Proxmox-specific configuration
func (*App) RunWithContext ¶ added in v0.17.0
func (*App) SetRootWithTitle ¶
SetRootWithTitle sets the root primitive with a styled title
Click to show internal directories.
Click to hide internal directories.