MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / NewPanelStyles

Function NewPanelStyles

tui/common.go:194–206  ·  view source on GitHub ↗

NewPanelStyles creates the standard panel styles shared across TUI views.

()

Source from the content-addressed store, hash-verified

192
193// NewPanelStyles creates the standard panel styles shared across TUI views.
194func NewPanelStyles() PanelStyles {
195 return PanelStyles{
196 Title: PrimaryTitleStyle().MarginBottom(1),
197 Selected: PrimarySelectedStyle(),
198 Cursor: PrimaryCursorStyle(),
199 Panel: PrimaryStyle().
200 Border(lipgloss.RoundedBorder()).
201 BorderForeground(lipgloss.Color(theme.PrimaryColor)).
202 Padding(1, 2).MarginTop(1).MarginBottom(1),
203 Label: LabelStyle(),
204 Help: HelpStyle(),
205 }
206}
207
208func NewPrimarySpinner() spinner.Model {
209 s := spinner.New()

Callers 7

NewPortsForwardModelFunction · 0.85
NewDeleteModelFunction · 0.85
NewModifyModelFunction · 0.85
NewCreateModelFunction · 0.85
NewSnapshotCreateModelFunction · 0.85
NewSnapshotDeleteModelFunction · 0.85

Calls 6

PrimaryTitleStyleFunction · 0.85
PrimarySelectedStyleFunction · 0.85
PrimaryCursorStyleFunction · 0.85
PrimaryStyleFunction · 0.85
LabelStyleFunction · 0.85
HelpStyleFunction · 0.85

Tested by

no test coverage detected