-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite the ui.large_collapsing_header
into re_ui::SectionCollapsingHeader
using re_ui::ListItem
#6657
Conversation
- Added show_hierarchical_with_children_unindented to ListItem - Re-implemented LargeCollapsingHeader using ListItem
…ort for help tooltip
re_ui::SectionCollapsingHeader
using re_ui::ListItem
ui.large_collapsing_header
into re_ui::SectionCollapsingHeader
using re_ui::ListItem
might be already on your radar: visible time range uses a long tool tip whereas the query uses the info button to convey what's in there |
Good call. adding this to #6655, I'll do it in a separate PR. |
.interactive(true) | ||
.force_background(DesignTokens::section_collapsing_header_color()) | ||
.show_hierarchical_with_children_unindented(ui, id, default_open, content, |ui| { | ||
//TODO(ab): this space is not desirable when the content actually is list items |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably link to the list itemification ticket? Once everything is linst items it should go away
On that note: Now that this is a list item, does it mean that we can remove some of the list item scopes we add down the line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm tempted to get rid of these right now, and add them where we dont have ListItem. I have that anyway on my TODO (#6655).
I can't quite answer for list item scope now, I have fully tracked the recent proliferation :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, great unification + tangible improvement
### What * Builds on #6657 * Part of #6655 This PR is mainly a refactor that abstract the buttons used by `PropertyContent` and `SectionCollapsingHeader`. (This refactor is partial and should also be applied to `LabelContent` -> #6191). This enables action button in section header, used to remove the "edit" button of the entity filter: <img width="356" alt="image" src="https://github.com/rerun-io/rerun/assets/49431240/f430805e-2b93-4134-bdbc-fcbbdbbc68e9"> ### 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/6662?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/6662?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/6662) - [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`.
What
This PR completely rewrites the existing
large_collapsing_header
stuff as follows:SectionCollapsingHeader
.ui.section_collapsing_header("label")
.ListItem::show_hierarchical_with_children_unindented
.Note: the label must now be double-clicked to collapse/uncollapse, as per
ListItem
behaviour.Few visible changes beyond the help tooltip. The background no longer changes on hover.
Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.