-
Notifications
You must be signed in to change notification settings - Fork 373
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
Use egui::Modal
to implement our modal dialogs
#8288
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
# Conflicts: # Cargo.lock # Cargo.toml
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.
Am I somehow magically looking at LFS-backed data, or was this committed directly to the repo?
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.
TL;DR: yes.
GH is extremely bad at displaying that stuff. The best I could do is to go to the relevant branch, navigate to the file in question, and notice the tiny mention top left:
Also, CI allegedly checks for that.
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.
TIL you can navigate to that file by using the … menu in the diff view and pick "View file".
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.
Ditto
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.
Ditto
Related
Modal
andMemory::set_modal_layer
emilk/egui#5358UiKind::Modal
, and consume escape-key properly emilk/egui#5414What
Our modal used to be implemented using a wrapper which used
egui::Window
. The guts of that wrapper are now reimplemented based onegui::Modal
. That wrapper is now namedModalWrapper
. This does not affect "user" code, which can still use the existingModalHandler
.This PR does not affect the styling of the modals. The only difference is modal are now centred on the window (that
egui::Modal
's default behaviour). Previously they were slightly offset towards the top of the window.TODO
UiKind::Modal
, and consume escape-key properly emilk/egui#5414 is merged