Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the root tea.Model. It owns the world, theme, keymap, and which screen is active. Screens read from the shared world; they don't mutate it.
type Keymap ¶
type Keymap struct {
Quit key.Binding
Help key.Binding
BodyInfo key.Binding
Maneuver key.Binding
NextBody key.Binding
PrevBody key.Binding
NextSystem key.Binding
WarpUp key.Binding
WarpDown key.Binding
Pause key.Binding
ZoomIn key.Binding
ZoomOut key.Binding
Back key.Binding
FocusNext key.Binding
FocusPrev key.Binding
FocusReset key.Binding
PlanNode key.Binding
ClearNodes key.Binding
PlanTransfer key.Binding
Porkchop key.Binding
Save key.Binding
Load key.Binding
RefinePlan key.Binding
}
Keymap centralises every binding the root model cares about. Screens that need additional keys define them locally.
func DefaultKeymap ¶
func DefaultKeymap() Keymap
type Theme ¶
type Theme struct {
Primary lipgloss.Style
Warning lipgloss.Style
Alert lipgloss.Style
Dim lipgloss.Style
HUDBox lipgloss.Style
Title lipgloss.Style
}
Theme collects the lipgloss styles used across screens. Palette matches docs/plan.md §Visual polish: primary cyan, warning amber, alert red, dim gray for orbits.
func DefaultTheme ¶
func DefaultTheme() Theme
Directories
¶
| Path | Synopsis |
|---|---|
|
Package screens implements the individual tea.Model screens composed by tui.App: OrbitView (C8), BodyInfo (C9), Maneuver (C20), Help (C9).
|
Package screens implements the individual tea.Model screens composed by tui.App: OrbitView (C8), BodyInfo (C9), Maneuver (C20), Help (C9). |
|
Package widgets provides drawille-backed canvas + lipgloss HUD helpers shared by all screens.
|
Package widgets provides drawille-backed canvas + lipgloss HUD helpers shared by all screens. |
Click to show internal directories.
Click to hide internal directories.