-
Notifications
You must be signed in to change notification settings - Fork 334
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
A lot of table improvements #420
Conversation
ui.weak("(auto)").on_hover_text( | ||
"Color chosen automatically, since it was not logged.", | ||
); |
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.
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.
🚢 so much better!!
scrollbars height made me stop for a bit, but yeah makes sense - we want the outer selection panel scrollbar only if the "number of elements including tables" gets too big (or your screen too small). How does this behave with on-hover though which uses the same table? 🤔
|
||
egui_extras::TableBuilder::new(ui) | ||
TableBuilder::new(ui) |
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.
might apply to others but I got it to be tricked into displaying neither horiztonal nor vertical scrollbars when it should have some. To repro open the text_logging example and resize the window a bit until the top log frame (3rd_party_logs) doesn't get enough space anymore
(they are still there and mouse wheel(s) work)
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.
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 guess I'm stuck in this Table-shaped hell for a while longer
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.
fixed!
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.
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.
Fix nr2 coming in emilk/egui#2371
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.
Closes #341
Closes a lot of #370
Based on emilk/egui#2369
This gives most tables auto-sized columns, and lets us double-click columns-separators to reset the column sizes.
It improves the
scroll-to-time
behavior of the text log.I also took a pass over all
Table
uses and just generally improved it.Screenshots
Nice default columns widths:
Nicer looking annotation context:
Nicer annotation context tables:
Checklist
CHANGELOG.md
(if this is a big enough change to warrant it)