aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/atuin_client/theme.rs
blob: ec0538e935e85d978dc9a66945caedbee6374141 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use crossterm::style::{Attribute, Attributes, Color, ContentStyle};
pub(crate) fn style_base() -> ContentStyle {
    ContentStyle::default()
}
pub(crate) fn style_annotation() -> ContentStyle {
    ContentStyle {
        foreground_color: Some(Color::DarkGrey),
        ..ContentStyle::default()
    }
}
pub(crate) fn style_important() -> ContentStyle {
    ContentStyle {
        foreground_color: Some(Color::White),
        attributes: Attributes::from(Attribute::Bold),
        ..ContentStyle::default()
    }
}
pub(crate) fn style_guidance() -> ContentStyle {
    ContentStyle {
        foreground_color: Some(Color::DarkBlue),
        ..ContentStyle::default()
    }
}
pub(crate) fn style_alerterror() -> ContentStyle {
    ContentStyle {
        foreground_color: Some(Color::DarkRed),
        ..ContentStyle::default()
    }
}
pub(crate) fn style_alertinfo() -> ContentStyle {
    ContentStyle {
        foreground_color: Some(Color::DarkGreen),
        ..ContentStyle::default()
    }
}
pub(crate) fn style_alertwarn() -> ContentStyle {
    ContentStyle {
        foreground_color: Some(Color::DarkYellow),
        ..ContentStyle::default()
    }
}