ZIm/crates/ui/src/utils
Michael Sloan ab59982bf7
Add initial element inspector for Zed development (#31315)
Open inspector with `dev: toggle inspector` from command palette or
`cmd-alt-i` on mac or `ctrl-alt-i` on linux.

https://github.com/user-attachments/assets/54c43034-d40b-414e-ba9b-190bed2e6d2f

* Picking of elements via the mouse, with scroll wheel to inspect
occluded elements.

* Temporary manipulation of the selected element.

* Layout info and JSON-based style manipulation for `Div`.

* Navigation to code that constructed the element.

Big thanks to @as-cii and @maxdeviant for sorting out how to implement
the core of an inspector.

Release Notes:

- N/A

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
Co-authored-by: Federico Dionisi <code@fdionisi.me>
2025-05-23 23:08:59 +00:00
..
color_contrast.rs Add theme preview (#20039) 2024-10-31 11:40:38 -04:00
corner_solver.rs welcome: Theme preview tile (#29689) 2025-04-30 17:46:11 +00:00
format_distance.rs ui: More component previews, UI component cleanup (#25302) 2025-02-21 09:20:53 -05:00
search_input.rs Debugger implementation (#13433) 2025-03-18 12:55:25 -04:00
with_rem_size.rs Add initial element inspector for Zed development (#31315) 2025-05-23 23:08:59 +00:00