(&self, theme: &Theme)
| 69 | } |
| 70 | |
| 71 | fn get_color(&self, theme: &Theme) -> ratatui::style::Color { |
| 72 | match self.alert_type { |
| 73 | AlertType::Info => theme.info, |
| 74 | AlertType::Success => theme.success, |
| 75 | AlertType::Warning => theme.warning, |
| 76 | AlertType::Error => theme.error, |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | fn get_icon(&self) -> &str { |
| 81 | match self.alert_type { |