Function gpg_tui::app::style::get_colored_info [−][src]
pub fn get_colored_info(info: &str, color: Color) -> Text<'_>
Expand description
Converts the given information text to colored Text
widget.
It adds colors to:
- parts separated by ‘:’ character. (e.g.
version: 2
) Skips the lines that starts with ’ ’.