Skip to content

Commit

Permalink
fix(handler): Apply MietteHandlerOpts::graphical_theme (#138)
Browse files Browse the repository at this point in the history
Fixes: #134
  • Loading branch information
CAD97 authored Mar 18, 2022
1 parent b6a6cc9 commit 70e84f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 70e84f9

Please sign in to comment.