Updated library colors to match the web UI

This commit is contained in:
2024-03-16 14:40:57 -06:00
parent a2e60470af
commit 6bdefa6ba5
4 changed files with 124 additions and 6 deletions
+26 -1
View File
@@ -23,6 +23,16 @@ mod test {
assert_eq!(Style::new().default(), Style::new().white());
}
#[test]
fn test_style_downloaded() {
assert_eq!(Style::new().downloaded(), Style::new().green());
}
#[test]
fn test_style_downloading() {
assert_eq!(Style::new().downloading(), Style::new().magenta());
}
#[test]
fn test_style_failure() {
assert_eq!(Style::new().failure(), Style::new().red());
@@ -41,6 +51,11 @@ mod test {
);
}
#[test]
fn test_style_missing() {
assert_eq!(Style::new().missing(), Style::new().red());
}
#[test]
fn test_style_primary() {
assert_eq!(Style::new().primary(), Style::new().cyan());
@@ -63,7 +78,17 @@ mod test {
#[test]
fn test_style_unmonitored() {
assert_eq!(Style::new().unmonitored(), Style::new().white());
assert_eq!(Style::new().unmonitored(), Style::new().gray());
}
#[test]
fn test_style_unmonitored_missing() {
assert_eq!(Style::new().unmonitored_missing(), Style::new().yellow());
}
#[test]
fn test_style_unreleased() {
assert_eq!(Style::new().unreleased(), Style::new().light_cyan());
}
#[test]