/// build a MadSkin, which will be used for markdown formatting
/// (for the help screen) by applying the `help_*` entries
/// of the skin.
build a MadSkin, which will be used for markdown formatting
(for the help screen) by applying the `help_*` entries
of the skin.
build a MadSkin which will be used for markdown formatting ( for the help screen ) by applying the ` help_ * ` entries of the skin .
pub fn to_mad_skin(&self) -> MadSkin {
        let mut ms = MadSkin::default();
        ms.paragraph.compound_style = CompoundStyle::from(self.help_paragraph.clone());
        ms.inline_code = CompoundStyle::from(self.help_code.clone());
        ms.code_block.compound_style = ms.inline_code.clone();
        ms.bold = CompoundStyle::from(self.help_bold.clone());
        ms.italic = CompoundStyle::from(self.help_italic.clone());
        ms.table = LineStyle {
            compound_style: CompoundStyle::from(self.help_table_border.clone()),
            align: Alignment::Center,
        };
        if let Some(c) = self.help_headers.fg_color {
            ms.set_headers_fg(c);
        }
        ms.scrollbar.track.set_compound_style(CompoundStyle::from(self.scrollbar_track.clone()));
        ms.scrollbar.thumb.set_compound_style(CompoundStyle::from(self.scrollbar_thumb.clone()));
        ms
    }
pub fn to_mad_skin ( & self ) -> MadSkin { let mut ms = MadSkin :: default ( ) ; ms . paragraph . compound_style = CompoundStyle :: from ( self . help_paragraph . clone ( ) ) ; ms . inline_code = CompoundStyle :: from ( self . help_code . clone ( ) ) ; ms . code_block . compound_style = ms . inline_code . clone ( ) ; ms . bold = CompoundStyle :: from ( self . help_bold . clone ( ) ) ; ms . italic = CompoundStyle :: from ( self . help_italic . clone ( ) ) ; ms . table = LineStyle { compound_style : CompoundStyle :: from ( self . help_table_border . clone ( ) ) , align : Alignment :: Center , } ; if let Some ( c ) = self . help_headers . fg_color { ms . set_headers_fg ( c ) ; } ms . scrollbar . track . set_compound_style ( CompoundStyle :: from ( self . scrollbar_track . clone ( ) ) ) ; ms . scrollbar . thumb . set_compound_style ( CompoundStyle :: from ( self . scrollbar_thumb . clone ( ) ) ) ; ms }
build a MadSkin, which will be used for markdown formatting
(for the help screen) by applying the `help_*` entries
of the skin.
build a MadSkin which will be used for markdown formatting ( for the help screen ) by applying the ` help_ * ` entries of the skin .
&self