(&mut self, theme: &ThemeItem)
| 1710 | } |
| 1711 | |
| 1712 | fn preview_theme_selection(&mut self, theme: &ThemeItem) { |
| 1713 | self.begin_theme_preview(); |
| 1714 | let (base, appearance, scheme) = self.current_base_theme(); |
| 1715 | self.theme = self.resolve_theme_by_id(base, appearance, scheme, &theme.id); |
| 1716 | self.status = Some(format!( |
| 1717 | "Preview theme: {} (Enter apply, Esc cancel)", |
| 1718 | theme.id |
| 1719 | )); |
| 1720 | } |
| 1721 | |
| 1722 | fn apply_theme_selection(&mut self, theme: &ThemeItem) { |
| 1723 | let (base, appearance, scheme) = self.current_base_theme(); |
no test coverage detected