MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / GetStateStyle

Function GetStateStyle

internal/tui/styles.go:229–244  ·  view source on GitHub ↗

GetStateStyle returns the appropriate style for an app state.

(state AppState)

Source from the content-addressed store, hash-verified

227
228// GetStateStyle returns the appropriate style for an app state.
229func GetStateStyle(state AppState) lipgloss.Style {
230 switch state {
231 case StateRunning:
232 return StateRunningStyle
233 case StatePaused:
234 return StatePausedStyle
235 case StateComplete:
236 return StateCompleteStyle
237 case StateError:
238 return StateErrorStyle
239 case StateStopped:
240 return StateStoppedStyle
241 default:
242 return StateReadyStyle
243 }
244}
245
246// GetActivityStyle returns the appropriate style for activity line based on state.
247func GetActivityStyle(state AppState) lipgloss.Style {

Callers 6

renderHeaderMethod · 0.85
renderNarrowHeaderMethod · 0.85
renderDiffHeaderMethod · 0.85
renderLogHeaderMethod · 0.85
renderNarrowLogHeaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected