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

Function GetActivityStyle

internal/tui/styles.go:247–258  ·  view source on GitHub ↗

GetActivityStyle returns the appropriate style for activity line based on state.

(state AppState)

Source from the content-addressed store, hash-verified

245
246// GetActivityStyle returns the appropriate style for activity line based on state.
247func GetActivityStyle(state AppState) lipgloss.Style {
248 switch state {
249 case StateRunning:
250 return ActivityRunningStyle
251 case StateError:
252 return ActivityErrorStyle
253 case StateComplete:
254 return ActivityCompleteStyle
255 default:
256 return ActivityMutedStyle
257 }
258}

Callers 2

renderActivityLineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected