-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for full span highlighting to modal and use it in the "Ad…
…d Space View or Container" modal (#4822) ### What This PR does the following: - Make sure the modal's clip rect is the same size as the modal itself. - Add a `full_span_separator()` helper function that's similar to `ui.separator()` but draws a full-span line and doesn't add vertical spacing. - Add a "full span" mode to our modal. In this mode, the vertical spacing is entirely left up to the user code. - Use the above in the "Add Space View or Container" modal for a nice, full span hover highlighting. - Add an example in `re_ui_example` showcasing how full span modal and `ListItem` work together. - Fixes #4673 `re_ui_example` with `ListItem`: ![Export-1705396140814](https://github.com/rerun-io/rerun/assets/49431240/9b6af286-d17f-4b2c-b47d-983ce3da099c) Add SV or Container: ![Export-1705397228282](https://github.com/rerun-io/rerun/assets/49431240/8bb5f447-0d05-493d-8d7a-a3a85f335a7a) ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using newly built examples: [app.rerun.io](https://app.rerun.io/pr/4822/index.html) * Using examples from latest `main` build: [app.rerun.io](https://app.rerun.io/pr/4822/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [app.rerun.io](https://app.rerun.io/pr/4822/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG - [PR Build Summary](https://build.rerun.io/pr/4822) - [Docs preview](https://rerun.io/preview/c76b1a5e8cf8acbb01c89d1741ab36d2f942189a/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/c76b1a5e8cf8acbb01c89d1741ab36d2f942189a/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
- Loading branch information
Showing
4 changed files
with
247 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.