diff --git a/src/main.rs b/src/main.rs index 0f5f4d0..35159da 100644 --- a/src/main.rs +++ b/src/main.rs @@ -116,7 +116,14 @@ impl Game { if self.selected_level == i { d.draw_rectangle_rec(bounds, Color::DARKCYAN); } - d.draw_text(level.name(), 10, y, 30, Color::WHITE); + + let mut title_color = Color::WHITE; + if let Some(solutions) = self.solutions.get(level.id()) { + if solutions.iter().any(|s| s.score.is_some()) { + title_color = Color::LIGHTGREEN; + } + } + d.draw_text(level.name(), 10, y, 30, title_color); let solution_count = self .solutions .get(level.id())