mirror of https://github.com/zkat/miette.git
fix(handler): Apply MietteHandlerOpts::graphical_theme (#138)
Fixes: https://github.com/zkat/miette/issues/134
This commit is contained in:
parent
b6a6cc9e75
commit
70e84f9a01
|
|
@ -167,10 +167,11 @@ impl MietteHandlerOpts {
|
||||||
} else {
|
} else {
|
||||||
ThemeStyles::none()
|
ThemeStyles::none()
|
||||||
};
|
};
|
||||||
|
let theme = self.theme.unwrap_or(GraphicalTheme { characters, styles });
|
||||||
let mut handler = GraphicalReportHandler::new()
|
let mut handler = GraphicalReportHandler::new()
|
||||||
.with_width(width)
|
.with_width(width)
|
||||||
.with_links(linkify)
|
.with_links(linkify)
|
||||||
.with_theme(GraphicalTheme { characters, styles });
|
.with_theme(theme);
|
||||||
if let Some(footer) = self.footer {
|
if let Some(footer) = self.footer {
|
||||||
handler = handler.with_footer(footer);
|
handler = handler.with_footer(footer);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue