-
Notifications
You must be signed in to change notification settings - Fork 55
Update notan #666
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
base: master
Are you sure you want to change the base?
Update notan #666
Conversation
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.
Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (2)
src/ui/mod.rs:132
- Changing the return type of get_rounding from f32 to u8 could lead to loss of precision compared to the previous implementation. Ensure that this change does not affect UI layout or visual consistency.
fn get_rounding(&self, height: f32) -> u8 {
src/ui/edit_ui.rs:471
- [nitpick] Consider using a more descriptive modal id instead of "modal" to avoid potential collisions or confusion with multiple modals in your UI.
let modal = super::Modal::new("modal", ctx);
|
||
ui.allocate_ui_at_rect(recent_rect, |ui| { | ||
|
||
// FIXME: This overflows |
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.
The overflow issue indicated by the FIXME comment for the recent menu should be addressed; consider adjusting the layout or maximum rectangle to ensure UI elements remain within bounds.
// FIXME: This overflows | |
// Adjusted to fit within bounds |
Copilot uses AI. Check for mistakes.
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.
You don't say... how about an actual suggestion about how the code will not overflow and grow the recent list :) ?
As the info panel needed to be fixed, I took another look at making it resizable. It can be done, but with the following limitations (scrollbars are the problem)
In addition, the sidebar can also be fixed again in size. |
Hmm, I can't say for certain. I can definitely understand the appeal of allowing it to be resizable but I'm not too sure about the preview window not being able to resize as well. That is probably my only gripe. Besides that though, I'll leave the scrollbar preference with you. Is there anything we would be able to have show next to the picker if it's resized large enough? Such as a prettier HEX info display? Are the scrollbar limitations still a problem if it's not resizable? If not then this still may be the way to go so that we aren't either A. Having a scrollbar there for nothing most of the time, or B. Not having an indicator that the user can scroll down. I think the current way handles this well as it only shows when there's a reason to scroll down. On the topic of resizing, a way to quickly resize to default would be nice. This would work by just double clicking either the info or edit panel (the resize indicator would be an even better spot if that's possible) and resizing the one double clicked to default. If this is hard to implement then don't worry about it. |
@woelper few things I've found in my testing:
1748104706.mp4 |
This update brings egui up to date with the recent changes in
notan
.Known issues / to fix:
placer.rs:149:9: You cannot advance the cursor when in a grid layout
Things we can do now:
Things that should have independent issues:
As this is a huge jump in versioning, more testing is appreciated.
egui_modal
has been removed and replaced with a simple custom modal solution based on existing egui modal code.