Get status message.
(w int)
| 96 | |
| 97 | // Get status message. |
| 98 | func (s *StatusBar) getStatusText(w int) string { |
| 99 | var style lipgloss.Style |
| 100 | // apply style |
| 101 | switch s.status { |
| 102 | case statusInfo: |
| 103 | style = statusTextInfo |
| 104 | case statusWarning: |
| 105 | style = statusTextWarning |
| 106 | case statusError: |
| 107 | style = statusTextError |
| 108 | } |
| 109 | return style.Render(s.getText(w)) |
| 110 | } |
| 111 | |
| 112 | // Set status. |
| 113 | func (s *StatusBar) setStatus(status int, text string) { |
no test coverage detected