Apply MietteHandlerOpts::graphical_theme

This commit is contained in:
CAD97 2022-03-18 17:41:59 -05:00
parent 209275d437
commit 989af4971e
1 changed files with 2 additions and 1 deletions

View File

@ -167,10 +167,11 @@ impl MietteHandlerOpts {
} else {
ThemeStyles::none()
};
let theme = self.theme.unwrap_or(GraphicalTheme { characters, styles });
let mut handler = GraphicalReportHandler::new()
.with_width(width)
.with_links(linkify)
.with_theme(GraphicalTheme { characters, styles });
.with_theme(theme);
if let Some(footer) = self.footer {
handler = handler.with_footer(footer);
}