mirror of https://github.com/zkat/miette.git
Apply MietteHandlerOpts::graphical_theme
This commit is contained in:
parent
209275d437
commit
989af4971e
|
|
@ -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