NewPanelStyles creates the standard panel styles shared across TUI views.
()
| 192 | |
| 193 | // NewPanelStyles creates the standard panel styles shared across TUI views. |
| 194 | func 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 | |
| 208 | func NewPrimarySpinner() spinner.Model { |
| 209 | s := spinner.New() |
no test coverage detected