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

Tighter UI for Pinhole and when hovering images #3579

Merged
merged 6 commits into from
Oct 2, 2023
Merged

Conversation

emilk
Copy link
Member

@emilk emilk commented Oct 2, 2023

What

Fit it on just two lines, and show full 3x3 matrix on hover:

image

Checklist

@emilk emilk added ui concerns graphical user interface 📺 re_viewer affects re_viewer itself include in changelog labels Oct 2, 2023
@Wumpf Wumpf self-requested a review October 2, 2023 09:17
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.

Neat!

Comment on lines +19 to +20
ui.label(format!("Focal length: {fl}\nPrincipal point: {pp}"))
.on_hover_ui(|ui| self.data_ui(ctx, ui, UiVerbosity::Reduced, query));
Copy link
Member

Choose a reason for hiding this comment

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

focal length is most of the time same on X and Y. I think the ui should tighten this further in that case

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point!

image

@emilk emilk changed the title Tighter UI for Pinhole Tighter UI for Pinhole and when hovering images Oct 2, 2023
@emilk emilk merged commit 500c59a into main Oct 2, 2023
25 of 27 checks passed
@emilk emilk deleted the emilk/improve-pinhole-ui branch October 2, 2023 09:59
@emilk
Copy link
Member Author

emilk commented Oct 2, 2023

This only shows the TensorData component when hovering an image, which is inconsitent with hovering anything else

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog 📺 re_viewer affects re_viewer itself ui concerns graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hover previews can easily become too cluttered
2 participants