-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make object hover & selection colors brighter and more pronounced (#6596
) ### What #### Problem The outline colors of things that are hovered and/or selected in spatial space views has always been way too dark. Can you quickly spot what is hovered and what is selected in this scene? ![image](https://github.com/rerun-io/rerun/assets/1148717/27e8579b-a5cb-4e88-bbf3-f379bfd54866) The problem with the selection color is that it is the dark blue used for selection of other things, e.g. `ListItem`s: ![image](https://github.com/rerun-io/rerun/assets/1148717/391a8bf2-23cf-4360-aee5-a263ee05f80e) Using the same color for selections everywhere makes sense, except one cannot really use the same color for a thin stroke as one uses for a massive background. #### Solution This PR introduces two new `ContextExt` methods: `hover_stroke` and `selection_stroke`. The hover stroke is very bright, making it directly obvious what is being hovered. The selection stroke is a brighter version of the blue background selection color. The result: ![image](https://github.com/rerun-io/rerun/assets/1148717/b2cd3d6a-991f-4bc5-9c5d-a72ce8893c3d) This is a vast improvement in practice (though the anti-aliasing leaves a little something to be desired…) #### Other I also chose to reuse the same colors for other thing things, like the rays show out in the 2D->3D projection: ![image](https://github.com/rerun-io/rerun/assets/1148717/0d2ea310-6731-4410-bc27-d9f82221ac14) ### 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 examples from latest `main` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6596?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6596?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 * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! - [PR Build Summary](https://build.rerun.io/pr/6596) - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) To run all checks from `main`, comment on the PR with `@rerun-bot full-check`.
- Loading branch information
Showing
8 changed files
with
73 additions
and
33 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
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
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