Skip to content
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

Window to big for PinePhone #50

Closed
lqs01 opened this issue Feb 15, 2021 · 20 comments
Closed

Window to big for PinePhone #50

lqs01 opened this issue Feb 15, 2021 · 20 comments
Labels
bug Something isn't working

Comments

@lqs01
Copy link

lqs01 commented Feb 15, 2021

As you can see on the Picture the window is to large if you use the PinePhone in vertical rotation (or normal use). In horizontal rotation it works fine. The PinePhone uses as screen resolution 720 x 1440 px with double scale PhoshUI.

picture

@xou816
Copy link
Owner

xou816 commented Feb 15, 2021

Thank you for your report :)
I don't know how scaling is handled with phosh :/ Is it usual for you to have scaling issues with gtk apps? I believe there is a way to scale apps individually, have you had to do it in the past?

@alistair23
Copy link
Contributor

The window is also too big in Plasma Mobile, so I don't think it's a Phosh issue.

@xou816
Copy link
Owner

xou816 commented Feb 15, 2021

K, thanks! I'll investigate and try to go below 720/2 width :)

@xou816 xou816 added the bug Something isn't working label Feb 16, 2021
@janbrummer
Copy link
Contributor

The necessary library for this is libhandy which also features a rust binding.

@xou816
Copy link
Owner

xou816 commented Feb 17, 2021

libhandy is being used, but I wrongly assumed I could expect a window of at least 720pixels (did not account for the scaling), but really I shouldn't assume any size at all. I'll upload a test build later today which should behave better on smaller screens!

@janbrummer
Copy link
Contributor

Sorry, didn't looked into your code yet. If you have any question regarding libhandy i could help a bit.

@jonaslomp
Copy link

jonaslomp commented Feb 17, 2021

On my pinephone i have the same issue, but just happened something strange after using the search, the music controls are outside of the screen (the window is too big in the vertical)

@pojntfx
Copy link

pojntfx commented Feb 17, 2021

I have similar problems on a BQ Aquaris X5 running postmarketOS & phosh; playback and navigation works fine though. I'd love to test out the new build once it's ready:

IMG_6564

@xou816
Copy link
Owner

xou816 commented Feb 17, 2021

Thank you all for your reports! I should setup a vm one of these days to test this on phones but in the meantime...

Here is a build you can try: https://github.com/xou816/spot/suites/2062132539/artifacts/41632717

It should be able to fit more easily on small screens.

@janbrummer
Copy link
Contributor

Thanks for your build. Quick feedback: Search result string should be wrapped otherwise the window size will increase.

@janbrummer
Copy link
Contributor

And of course the search results as well.

@xou816
Copy link
Owner

xou816 commented Feb 17, 2021

Oh good catch! Thanks :)

@pojntfx
Copy link

pojntfx commented Feb 17, 2021

Can't test on mobile (flatpak is X86_64 only/depends on the X86_64 GNOME runtime) but the max width no longer seems locked. One more thing I've noticed: There is currently no way to directly see the name of the current song (see screenshot below) when using it on smaller devices; maybe something like what iOS Spotify is doing (adding a seperate view with the current song and not providing controls directly) could be done here as well?

@xou816
Copy link
Owner

xou816 commented Feb 17, 2021

Ah, sorry, did not think of other archs... thank you for your feedback however! Would you mind opening a dedicated issue for this? It will take some work to have something that works great on mobile; I will limit this issue to making it usable if a bit awkward :)

For instance the seeking bar does not make much sense...

@baconicsynergy
Copy link

Just hopping in to say this is the one barrier that's keeping me from switching from the official spotify android app via Anbox to Spot. Happy to hear this being discussed. Go team!

@xou816
Copy link
Owner

xou816 commented Feb 17, 2021

Err, don't know if it will be useful, but if anyone has a phone that uses x86 for some reason, here is a more recent build that adds wrapping as per @janbrummer's suggestion :) https://github.com/xou816/spot/suites/2062387210/artifacts/41640297
I'll release this later this week!

@janbrummer
Copy link
Contributor

That's better, albums and artists still seems to have a fixed number of entries per row, so that only 1 album is visible.

@janbrummer
Copy link
Contributor

A little bit more feedback regarding window size:

Phosh uses a scaling factor 2 which means that your application needs to fit for 360x720. At the moment height is only a problem as soon as search is used (it's 810px min then).

Height issue in search mode is caused by adding your Albums and Artists expander into a simple box. You would need to add a scrolledwindow as parent and it should be fine.

Side note (and it should be really a new ticket): song_title label should use xalign 0, otherwise titles are jumping during resize.

@xou816
Copy link
Owner

xou816 commented Feb 19, 2021

Thank you for the detailed explanation! I'll look into that!

@xou816
Copy link
Owner

xou816 commented Feb 21, 2021

I am closing this for now, thank you all for the help. Overall, a lot of small changes should have made things better on mobile displays in 0.1.8. Feel free to open specific issues if you encounter something!

@xou816 xou816 closed this as completed Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants