Skip to content
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

Add tiles argument to Behavior functions #17

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Conversation

abey79
Copy link
Member

@abey79 abey79 commented Aug 1, 2023

This PR makes it possible for functions like Behavior::tab_bg_color() to retrieve the user object and behave accordingly (e.g. blue background for "selected" blueprints).

Warning

This is obviously an API breaking change.

Fixes #14

@abey79 abey79 added the enhancement New feature or request label Aug 1, 2023
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@Wumpf Wumpf merged commit bb98b39 into main Aug 1, 2023
@Wumpf Wumpf deleted the antoine/behavior-tiles branch August 1, 2023 10:05
@abey79 abey79 mentioned this pull request Aug 2, 2023
6 tasks
abey79 added a commit to rerun-io/rerun that referenced this pull request Aug 2, 2023
### What

This PR includes the following:
- Improves the UI of the dragged tab UI. Now it feels that the actual
tab is being dragged, no some different looking thing. I applied 0.5
transparency on it.
- Styles the source and destination areas during the drag (actual
styling TBD).
- Syncs with egui_tiles's master and includes a `[patch]`, so a release
of egui_tiles is needed soon after we merge this:
  - rerun-io/egui_tiles#16
  - rerun-io/egui_tiles#17
  - rerun-io/egui_tiles#18

TODO:
- [x] fine tune overlay colours
- [x] make overlay colours customisable in egui_tiles
- [x] cleanup code (currently lots of redundancy)

>[!NOTE]
>Do not review commit-by-commit, I messed my rebase/merges


![image](https://github.com/rerun-io/rerun/assets/49431240/285f2542-098c-40aa-9715-367eb8e4c917)


### 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 [demo.rerun.io](https://demo.rerun.io/pr/2893) (if
applicable)

- [PR Build Summary](https://build.rerun.io/pr/2893)
- [Docs
preview](https://rerun.io/preview/pr%3Aantoine%2Ftab-drag-ui/docs)
- [Examples
preview](https://rerun.io/preview/pr%3Aantoine%2Ftab-drag-ui/examples)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tiles argument to Behavior functions
2 participants