fix: merge themes from multiple locations

This commit is contained in:
Victoria Brekenfeld 2023-01-09 23:54:07 +01:00 committed by Paul Delafosse
parent 1be7d4e73b
commit 92f759fd09
4 changed files with 51 additions and 22 deletions

View file

@ -88,11 +88,18 @@ mod test {
#[test]
fn should_get_theme_parents() {
let theme = THEMES.get("Arc").unwrap();
let parents = theme.inherits();
for theme in THEMES.get("Arc").unwrap() {
let parents = theme.inherits();
assert_that!(parents).does_not_contain("hicolor");
assert_that!(parents).does_not_contain("hicolor");
assert_that!(parents).is_equal_to(vec!["Moka", "Faba", "elementary", "Adwaita", "gnome"]);
assert_that!(parents).is_equal_to(vec![
"Moka",
"Faba",
"elementary",
"Adwaita",
"gnome",
]);
}
}
}