-
-
Notifications
You must be signed in to change notification settings - Fork 68
feat: port to adaptive dialogs #804
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
Conversation
Thank you so much Óscar! 🙇 Don't worry about the CI, I'll deal with it! |
Something is wrong, Esc key to close dialogs doesn't work and it should by default with AdwDialog. |
(I haven't looked into this PR yet) Does it happen on all dialogs or some? In some cases we handle it https://github.com/search?q=repo%3AGeopJr%2FTuba+add_binding_action+%28Gdk.Key.Escape&type=code. Anything that is not set to window.close should probably have its AdwDialog's can-close set to false |
All, even with Report dialog that has From what I understand from the migration guide and code, we should not have to explicitly specify it https://gitlab.gnome.org/GNOME/libadwaita/-/blob/main/src/adw-dialog.c?ref_type=heads#L1188-L1189 |
Yeah looks like the global esc accel is causing it Line 251 in 354cde1
Removing it ( cc: @alice-mkh |
Why do you even need that action? Navigation view already has an action for going back AND handles shortcuts |
The mediaviewer is an overlay and app.back dismisses it if it's open. I removed the ones navigationview handles and made the mediaviewer dismiss itself on its keypress event instead |
Can't you use navigation view for media viewer? |
It used to be a stack but changed to an overlay when the scalerevealer was added for the transitions and drag effect Screencast.from.2024-02-27.13-12-21.webm |
I see. Well either way, the way it handles shortcuts is very broken and things would work if you redo it the correct way, using (and make sure you stop handling as needed) |
I do want to support transitions like in nav view in future, but yeah, right now it's not possible. |
libadwaita 1.5 depends on GTK 4.13.4, allowing us to remove compat with lower versions
This also gets rid of the mobile popover hack - popovers wouldn't fit no matter what so the action bar moved at the top. Since adwdialog moves to the bottom, it's no longer a problem. Composer pages now need to be unparented before disposal
fix: api changes
All remaining dialogs, except for the composer (#623), should be covered by this PR.
Fixes #777