edlearn_tui 0.2.0

A TUI for Edinburgh Uni's Learn
1
2
3
4
5
6
7
8
9
10
use ratatui::{
    prelude::Text,
    style::{Color, Style},
};

pub fn error_text(t: impl Into<Text<'static>>) -> Text<'static> {
    let mut t = t.into();
    t.patch_style(Style::default().fg(Color::Red));
    t
}