SoongNoonien / plattenalbum

Browse music with MPD
GNU General Public License v3.0
167 stars 21 forks source link

Scaling on smaller displays #120

Open fossdd opened 1 month ago

fossdd commented 1 month ago

would be nice if plattenalbum would fit on smaller displays like mobile phones, so that they could be supported by mobile user interfaces like Phosh.

SoongNoonien commented 1 week ago

The most recent commit makes some progress on this. The artist list on the left will now be hidden if there is not enough space. This reduced the minimum window width from 800px to 620px. With libadwaita 1.6 and bottom sheets I should also be able to make the playlist hide on narrow window sizes.

fossdd commented 1 week ago

Great, thanks for the work!

doronbehar commented 1 week ago

Thanks for updating @SoongNoonien . This indeed helps. For the inpatients, here's a screenshot of the smallest screen I managed to get to:

image

It is 742 × 602 pixels . I wish we could get down to a width of 480 pixels :pray:.

SoongNoonien commented 1 week ago

It is 742 × 602 pixels

How did you measure this? Without any HIDPI scaling the minimum size is 620x480, which corresponds exactly to your screenshot (proportion wise).

I wish we could get down to a width of 480 pixels 🙏.

I think this should be possible with these bottom sheets.

doronbehar commented 1 week ago

How did you measure this?

Oh Indeed my measurement included some empty pixels in the background that Gnome's screenshot includes from some reason. Still though, if I understand correctly, the most minimal width now is 620 pixels, and not 480 pixels, which makes it still not fit to my little project :). My screen size is close to a 480x480 square.

The bottom sheets you are referring to are not something that the user can modify right? The link seems to point to API.. If not I assume you wanted to point us to how to help our selves solve this issue?

SoongNoonien commented 1 week ago

The bottom sheets you are referring to are not something that the user can modify right?

No, these are just a new UI element coming in the next libadwaita version.

The link seems to point to API.. If not I assume you wanted to point us to how to help our selves solve this issue?

No, I just gave the link that you can see how they look like.