Add and purify arc example by @ThatsNoMoon

This commit is contained in:
Héctor Ramón Jiménez 2022-07-10 15:15:29 +02:00
parent 53d93a37dd
commit 4b8ae71b63
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 155 additions and 5 deletions

View file

@ -5,11 +5,11 @@ use palette::{FromColor, Hsl, Mix, RelativeContrast, Srgb};
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Palette {
background: Color,
text: Color,
primary: Color,
success: Color,
danger: Color,
pub background: Color,
pub text: Color,
pub primary: Color,
pub success: Color,
pub danger: Color,
}
impl Palette {