-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
improve alignment of strings in library fields #9369
Comments
Commented by: uklotzde This does not only affect the track duration but also various other columns that might be aligned right within their column:
I'm still unsure though, because for the BPM column I prefer to cut off the less significant fractional digits to the right. |
Commented by: ronso0
I do this, too. So you're saying the columns can't have individual alignments? |
Commented by: uklotzde I just tried to expand the scope of your valid request and didn't metion any technical preconditions or requirements ;) Generalizing also helps to think about the consequences and implications. |
Commented by: ronso0 okay, so let's push this a bit further:
|
I'd prefer to have an alignment of the "filepath" field to the left because I'm more interested in the beginning of the path rather than the filename (e. g. for searching the file in the file system). |
In the right side is elided this allows to see the file name. The tooltip reveals the entire path. The best way to open the track in the file browser is using the right click menu. |
I assume this is about spotting tracks from certain directories, not about opening containing directories. |
Fix for the BPM and duration column #11634 |
You're right. Opening the correct directory is easy manageable via the context menu. My use case was more about cleaning my music library in the file system. So checking if a file is not in the correct directory would be much easier if I could see the beginning of the path in the track list. Maybe the alignment coud be made changeable for the user (left/right)? |
@veeroohre Please file a new bug for your issue. |
Reopening, because after #11634 adjacent left-aligned columns are to close. Maybe this can be fixed by adding some horizontal padding to all cells. What do you think? |
A unconditionally padding is not desired in case of small screens where users wants to make the best of their vertical space. A easy fix is to reorder the columns. Can we make use of a different styling? But I am afraid the DecimalDelegate #11634 (comment) is back on the cutting table. ?? |
true.
I don't understand how this would fix anything when users rearrange columns?
What do you have in mind? I think of horizontal gradients for the background, but that can easily become too noisy and also conflict with the track color bg, so no option.
I experimented with that, it's a nice idea but it doesn't solve the issue right away. |
I meant easy to fix for the user. I share the concerns with to much visual noise in a styling solution. Your idea sounds interesting. I am just concerned if this will draw extra CPU. A solution that will require no extra CPU is a delegate that uses in the first iteration the original QT code from QItemDelegate::drawDisplay() without calling it itself. From there we have all options to put the pixels where we want. |
Even though I partly agree with you, sentences starting with "Why not just ..." make me laugh sometimes (no offence) because most of the time it's not done by flipping a switch, instead serious reworks are required and some developer(s) spend days or weeks to make it "just work". Like in this case. Unfortunately it's not trivial (or at least quite some manual refactoring) to implement adjustable alignment for columns. An alternative coming to mind:
You're aware that you can resize columns? Duration spans only that wide when you doubleclick on the right-hand separator to auto-ajust the width (min size). |
Haha, fair :) though I was coming from a simple-to-make-it-work-for-the-user UX angle not a dev-complexity angle. Having a small few developers (arguably) bikeshed the text alignment was kinda amusing given the colums can be rearranged in ways that make said arguments null. To me at least, it looks silly/is frustrating having title text for a column that's always going to be truncated when the column width is at a natural width for its contents. My suggestion (too subtly made above) would be to change "Duration" to "Length" which is ~25% shorter. But ultimatly I understand I don't know the complex ins-and-outs of the library columns enough so, indeed, take my thoughts with a pinch of salt! |
Well, depends on the translation (fr: longueur, es: longitud, etc.), whereas Duration is "Dauer" in german. |
Fair point. I would modify my proposal to be; use the shortest appropriate word in each translation language. |
Does someone want to work actively on this? If not, this issue is one of polish and imho should not block the 2.4 release. I am open to other suggestions but I'd prefer to triage this list to a set of essential items |
No need for the 2.4.0 milestone here. I have some fixes stashed (BPM column for example) and will open PRs after 2.4 has been released. |
Moved it to 2.4.1 to have a reminder. |
@ronso0 how is the situation here now? |
I think it's okay-ish now, except for the date columns, ReplayGain and Track #. As I wrote above I'm totally fine with removing the milestone. |
Re
I have opened #13674 to make some small steps forward. |
This one is tricky (like it would be with BPM if we wouldn't have a fixed number of decimals). |
is it feasible to make a best effort guess on how many digits we usually need to show and then just compute the required width once? |
Sure. Though, when computing the length we need to consider that the library font/size can be changed and reset/recompute. I see 4-6 decimals for my tracks, so 4 would be okay (I don't see the value of more than 2 decimals anyway) |
yeah, not sure how much effort it would be to recompute that. |
Reported by: ronso0
Date: 2018-07-02T22:40:04Z
Status: Confirmed
Importance: Wishlist
Launchpad Issue: lp1779775
Tags: library, usability
edit: I extended the list of possible improvements, mostly taken from Uwe's comment below:
Duration: omit leading zerosThis would ease finding long tracks and tracks with high/low BPM tracks in large track tables.
Also this could clean up the deck view.
The text was updated successfully, but these errors were encountered: