Don't adjust the sidebar size with the window size, and reduce the text size a bit
ClosedPublic

Authored by ngraham on Apr 15 2019, 3:25 PM.

Details

Summary

Currently the sidebar text is huge and the sidebar itself adjusts its width with
the window's own width. This results in sidebar items' text getting elided with
most window sizes.

This patch reduces the text size a bit and fixes the size, resolving both problems.

BUG: 406481

Test Plan

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ngraham requested review of this revision.Apr 15 2019, 3:25 PM
ngraham created this revision.
filipf added a subscriber: filipf.Apr 15 2019, 3:31 PM

I don't think it's my place to review this, but wanted to say I've been testing out Elisa these past few days and also felt like the sidebar text size would be better if it were smaller. Looks really nice in the screenshot!

mgallien added inline comments.Apr 15 2019, 4:40 PM
src/qml/ContentView.qml
184–186

Part of this was necessary to get the view to collapse to icons only and text on hover when Elisa windows is quite small. Maybe you can keep some kind of threshold to only have two width: the full one with icon and text and the collapsed one with icon and text on hover.

I don't think it's my place to review this, but wanted to say I've been testing out Elisa these past few days and also felt like the sidebar text size would be better if it were smaller. Looks really nice in the screenshot!

You are welcome to contribute. There is no prerequisite for anybody to contribute as long as you want to be involved and you follow the KDE community way of doing things.

ngraham added inline comments.Apr 15 2019, 5:31 PM
src/qml/ContentView.qml
184–186

Hmm, even without my patch, I'm not sure that feature actually works. With unpatched git master, no matter how small I make the window (including using quarter-tiling to override the minimum size), the sidebar never collapses to become an icons-only view with tooltips.

mgallien added inline comments.Apr 15 2019, 6:43 PM
src/qml/ContentView.qml
184–186

You need to hide the playlist to get a smaller minimal size. In this case, you can resize it smaller.
I wanted to allow also the playlist to collapse automatically when you resize the window to a small size.

ngraham updated this revision to Diff 56328.Apr 15 2019, 9:29 PM
ngraham marked 3 inline comments as done.

Collapse the View Selector sidebar to be icons-only when the playlist is hidden and the window is made narrow

Thanks @filipf. I really, really like Elisa, and the code is very high quality, but with adequate low hanging UI fruit. It's a VDG hacker's dream come true. :)

Thanks @filipf. I really, really like Elisa, and the code is very high quality, but with adequate low hanging UI fruit. It's a VDG hacker's dream come true. :)

Exactly, I also really like what I'm seeing so far and have been looking at how I could contribute.

I don't think it's my place to review this, but wanted to say I've been testing out Elisa these past few days and also felt like the sidebar text size would be better if it were smaller. Looks really nice in the screenshot!

You are welcome to contribute. There is no prerequisite for anybody to contribute as long as you want to be involved and you follow the KDE community way of doing things.

Thank you :) I don't have a detailed experience of the program yet, but I caught one thing that I felt silly posting a diff for (and it seemed inappropriate to do a git push). Here it should be "tracks" instead of "track" I think: https://lxr.kde.org/source/extragear/multimedia/elisa/src/musiclistenersmanager.cpp#0380

Thank you :) I don't have a detailed experience of the program yet, but I caught one thing that I felt silly posting a diff for (and it seemed inappropriate to do a git push). Here it should be "tracks" instead of "track" I think: https://lxr.kde.org/source/extragear/multimedia/elisa/src/musiclistenersmanager.cpp#0380

I have a feeling it's fine to push a commit directly that corrects the grammar on a comment. :) But no patch is too small, I say!

mgallien accepted this revision.Apr 16 2019, 3:42 PM

Nice !
Thanks

This revision is now accepted and ready to land.Apr 16 2019, 3:42 PM
This revision was automatically updated to reflect the committed changes.