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

Moved dragged widget UI to Behaviour #16

Merged
merged 2 commits into from
Aug 1, 2023
Merged

Conversation

abey79
Copy link
Member

@abey79 abey79 commented Aug 1, 2023

.It's currently impossible to customise the look of the dragged widget. This PR moves the relevant code to a new function in Behavior, enabling customisation in client code.

@abey79 abey79 added the enhancement New feature or request label Aug 1, 2023
@abey79 abey79 requested a review from Wumpf August 1, 2023 09:42
@Wumpf Wumpf merged commit a02d680 into main Aug 1, 2023
@Wumpf Wumpf deleted the antoine/behaviour-drag-ui branch August 1, 2023 14:00
@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.

2 participants