From 989af4971eed5488820b592b0045a6de340d2a78 Mon Sep 17 00:00:00 2001 From: CAD97 Date: Fri, 18 Mar 2022 17:41:59 -0500 Subject: [PATCH] Apply MietteHandlerOpts::graphical_theme --- src/handler.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handler.rs b/src/handler.rs index 9ed1bd3c..ada2f3ec 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -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); }