diff --git a/crates/inspector_ui/src/div_inspector.rs b/crates/inspector_ui/src/div_inspector.rs index 9dd21cc574f7a802df967f272595ee46ac518c6d..1ff9e46369892f523a42d36feba0daae8794a052 100644 --- a/crates/inspector_ui/src/div_inspector.rs +++ b/crates/inspector_ui/src/div_inspector.rs @@ -673,6 +673,8 @@ fn guess_rust_code_from_style(goal_style: &StyleRefinement, cx: &App) -> (String if let Some(color) = (color_method.get)(&goal_style) { let mut found_match = false; for theme_color_field in ThemeColorField::iter() { + // TODO: If proper color provenance information is added, then the + // `make_colors_unique` hack in the theme loading code can be removed. if *theme.colors().get_field_by_enum(theme_color_field) == color { found_match = true; let _ = write!(