-
-
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
Migrate to new libadwaita Adaptive Dialogs #95
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.
Can you rename this to "feat: change window min height and width"
And please say why this is necessary in the commit message.
a5b3aef
to
93c5dac
Compare
Done (hopefully) |
From the Human Interface Design Guidelines:
|
Screencast.from.2024-02-04.12-05-13.webm |
93c5dac
to
e7f0ea7
Compare
Those errors are possibly from other screens having a conflicting default height. I'd recommend looking into that instead.. |
so should I change the height to the HIG one then? it seems to break and not show some stuff at the bottom when that small. |
e7f0ea7
to
30ae5e8
Compare
Yes. Will need to investigate further. |
Done, is this good for a re-review now? @vixalien |
|
src/application.ts
Outdated
@@ -140,4 +140,4 @@ export class Application extends Adw.Application { | |||
|
|||
export function get_player() { | |||
return (Gtk.Application.get_default() as Application).player; | |||
} | |||
} |
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.
can you please re-add the whitespace at the end of this file?
make sure to do so in this same commit (i.e don't add another fixup commit)
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 didn't resolve this either..
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.
@vixalien must have not pushed correctly... Could you fix these?
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.
Yeah, git can get finnicky sometimes. I will try to fix these tomorrow. Have a great night.
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.
Yeah, git can get finnicky sometimes. I will try to fix these tomorrow. Have a great night.
Thanks, you too!
src/application.ts
Outdated
this.preferences_window.set_transient_for(this.get_active_window()); | ||
if (!this.preferences_dialog) { | ||
this.preferences_dialog = new MuzikaPreferencesDialog(); | ||
//this.preferences_dialog.set_transient_for(this.get_active_window()); |
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.
remove this comment as well
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 think we can mark this as resolved now.
src/pages/playlist.ts
Outdated
@@ -170,7 +170,6 @@ export class PlaylistPage extends Adw.Bin | |||
if (this.playlist?.editable !== true) return; | |||
|
|||
const dialog = Adw.MessageDialog.new( |
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.
Should this be an Adw.AlertDialog
?
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 didn't actually change this..
be careful when you mark conversations as resolved.
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.
Weird... I did change it...
Whew... finaly reviewed this. Check the requested changes, and don't hesitate to ask me in case of doubt. |
Oops sorry... I was trying to do a review, but failed. You can see the suggested changes again now. Also, you can review the commits I made and let me know if all is okay. |
Note to self: reorder commits before merging |
042de74
to
fbd0510
Compare
@vixalien re-review? 😅 |
They seem fine, no problems here! |
src/window.ts
Outdated
page.set_modal(true); | ||
page.set_transient_for(this); | ||
page.present(); | ||
//page.set_modal(true); |
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.
remove these comments too
data/ui/components/playlist/edit.blp
Outdated
default-width: 360; | ||
default-height: 440; | ||
content-width: 360; | ||
content-height: 440; |
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.
remove the content-height
, it's unnecessary
fbd0510
to
644fc3b
Compare
please pull this branch beforehand, as I just made some changes |
Hi, I'm currently not at my computer right now, so I can't do too much. |
Hey there! I see a bit of the changes I requested were just marked as resolved without first implementing them, which is problematic. A few of the comments I requested to be removed are still there, as well as some newlines at the end of the file.. Please review each change request carefully and update the relevant commit (you don't need to add extra commits) and re-request a review when done. Thanks and have a great day. |
I think something weird happened with git, I did those changes and pushed... |
Then I think there might be an issue on my end. Let me recheck |
Reason for width change: bottom sheets cut off to the right with the width under 360 Reason for height change: be in line with the GNOME HIG (https://developer.gnome.org/hig/guidelines/adaptive.html#small-size-handling)
f1694f3
to
fa34c5d
Compare
Okay! I fixed the various issues and used the |
When you are in the normal browsing mode (i.e. the now player view is not open) the now player view woud still request 294px, however the miniplayer is already visible which caused overflow.
fa34c5d
to
0afd20d
Compare
Thank you, will do. |
Playlists seem to work fine (also tested the delete dialog, the playlist doesn't disappear, this might just be an unrelated issue though). Will update if I encounter anything. @vixalien |
Is this ready yet? |
Yes it's ready. |
Relevant: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/migrating-to-adaptive-dialogs.html
2nd attempt, hopefully good for review.
Changes Here: https://github.com/vixalien/muzika/pull/95.diff