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

Make drag preview style customisable #18

Merged
merged 1 commit into from
Aug 2, 2023
Merged

Conversation

abey79
Copy link
Member

@abey79 abey79 commented Aug 1, 2023

This PR factors out to functions out of Behavior<_>::pain_drag_preview() to enable customisation of the overlay stroke and colour.

@abey79 abey79 requested a review from Wumpf August 1, 2023 20:17
@abey79 abey79 added the enhancement New feature or request label Aug 1, 2023
@abey79 abey79 mentioned this pull request Aug 2, 2023
6 tasks
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.

makes sense! Moar customization!

@Wumpf Wumpf merged commit f835c4d into main Aug 2, 2023
@Wumpf Wumpf deleted the antoine/drag-preview-style branch August 2, 2023 08:14
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