[Feat] add new bg color named dusk

This commit is contained in:
Mist 2024-03-17 18:53:22 +08:00
parent f3cbc3b901
commit 08f6c48fae

View file

@ -103,12 +103,12 @@ impl Background {
GradientStop::new(0.95, Color::from_rgba8(116, 185, 255, 255)), GradientStop::new(0.95, Color::from_rgba8(116, 185, 255, 255)),
], ],
"bamboo" => vec![ "bamboo" => vec![
GradientStop::new(0.1, Color::from_rgba8(107, 203, 165, 255)), GradientStop::new(0.22, Color::from_rgba8(107, 203, 165, 255)),
GradientStop::new(95., Color::from_rgba8(202, 244, 194, 255)), GradientStop::new(0.95, Color::from_rgba8(202, 244, 194, 255)),
], ],
"dusk" => vec![ "dusk" => vec![
GradientStop::new(0.2, Color::from_rgba8(224, 103, 76, 255)), GradientStop::new(0.22, Color::from_rgba8(255, 98, 110, 255)),
GradientStop::new(95., Color::from_rgba8(253, 175, 25, 255)), GradientStop::new(0.95, Color::from_rgba8(255, 190, 113, 255)),
], ],
_ => return Err(RenderError::UnknownBackgroundTheme(theme.to_string())), _ => return Err(RenderError::UnknownBackgroundTheme(theme.to_string())),
}; };