bubbles/core/style.rs
1use crossterm::style::Color;
2
3#[derive(Clone)]
4pub struct Style {
5 pub gradient: Vec<&'static str>,
6 pub color: Color,
7 pub background: Color,
8}
9
10impl Style {
11 pub fn new(gradient: Vec<&'static str>, color: Color, background: Color) -> Self {
12 Self {
13 gradient,
14 color,
15 background,
16 }
17 }
18}
19
20impl Default for Style {
21 fn default() -> Self {
22 Self {
23 gradient: vec!["#AAAAAA", "#FFFFFF"],
24 color: Color::DarkGrey,
25 background: Color::Reset,
26 }
27 }
28}