-
Notifications
You must be signed in to change notification settings - Fork 16
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
add functionality to add account buttons #147
Conversation
hmm ok this seems like a simple fix, I'm not 100% how the layers work but we can just ensure they are the same. |
try fast-forwarding your branch to: egui-nav-fix there seems to be a clipping issue but it doesn't crash at least |
it's very strange because I can confirm that |
Signed-off-by: kernelkind <[email protected]>
Signed-off-by: William Casarin <[email protected]>
c81e35a
to
d0e3c42
Compare
is the 'clipping' issue you're referring to the way the window resizes in 1 frame instead of animating the resize? @jb55 What currently happens is Ideally I think the back animation and window resize would happen in one animation. But that might entail moving the window to Would doing the back animation and then animating the window resize (two separate steps instead of one) be sufficient? |
Signed-off-by: kernelkind <[email protected]>
Signed-off-by: kernelkind <[email protected]>
On Thu, Jul 04, 2024 at 03:31:55PM GMT, kernelkind wrote:
is the 'clipping' issue you're referring to the way the window resizes in 1 frame instead of animating the resize? @jb55 What currently happens is `egui-nav` animates, and when it's finished the window resizes in 1 frame.
oh yeah maybe. not sure why the window would need to resize
Ideally I think the back animation and window resize would happen in one animation. But that might entail moving the window to `egui-nav`...
We probably need to build our own window anyway, the one from egui
doesn't fit the style of our design.
This doesn't make a lot of sense to me though, if it were the case that
it resizes then the clipping rect should have been updated the next
frame, unless its resizing every 2 frames which doesn't make too much
sense to me.
For some reason egui-nav is always getting a full ui.available_size height for the clip rect every frame?
Would doing the back animation and then animating the window resize (two separate steps instead of one) be sufficient?
There are lots of issues with the current window, like different sizes
between the manager and the account creation. Ideally each control
should just fill the container it is given, I think the account
creation screen has hardcoded-nonresponsive sizes?
|
The variable sizing of the global window is by design. I chose to implement it that way because the login panel looks best in the dimensions laid out in the figma design (in my opinion) and other views might not (like account management). These are the things I'm imagining we're using the global window for:
some things will require more area than others, so the global window should adapt to present the view best in my opinion. what do you think? @jb55 |
I think that makes sense logically but when you are navigating between windows with different sizes it feels jarring and is terrible design wise. |
I agree right now it is quite jarring. I think a clever animation could help. |
This PR adds functionality to the "add account" button in the account switcher and the "add account" button in the account management view. While implementing this functionality, some problems with
egui-nav
were uncovered.Navigating in the global window crashes:
after pressing the
< Manage Account
button:I think this is happening because the underlying window in
FixedWindow
hasLayerId
Order::Middle
, but inegui-nav/src/lib.rs:353
we're setting theLayerId
toOrder::Background
in the same frame@jb55 I'm not very familiar with how
egui-nav
works, what are your thoughts on how to fix this?