GetActivityStyle returns the appropriate style for activity line based on state.
(state AppState)
| 245 | |
| 246 | // GetActivityStyle returns the appropriate style for activity line based on state. |
| 247 | func 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 | } |
no outgoing calls
no test coverage detected