-
-
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
WSearchRelatedTracksMenu: Elide action text #3213
Conversation
works with Qt 5.12.8 it seems to elide in the middle (at least the folder). |
Qt::ElideMiddle has been chosen deliberately, a comment in the code explains why. The text is already split into a non-elided prefix and an elided suffix. Anything else would require a more sophisticated strategy. But is it worth to complicate the code further? I don't think so. The value should only give a glimpse which query will be executed. No data will be modified. The full text becomes visible in the edit box when triggering the search. |
I just found that |
I guess currently we are searching just for the prefix, case-insensitive. This is desired to find files in all subfolders. Maybe we need two different folder searches? Or delimit the folder string with a terminating '/'. I will do that as a first step. |
Done. But we cannot exclude subfolders. |
Im a huge fan how the fish shell compresses the folderpath. This is usually enough to know there you are but dont spam the ui with characters. |
This PR is not the place for discussing custom elision algorithms. |
I have already left a TODO comment in the code:
|
Unfortunately, the hollow triangle looks like an ordinary character that doesn't distinguish the different parts field vs. value of the text very well. |
I go along with your screenshot at the top, but it looks different here. I wonder why it looks different eventhough we ship the fonts. maybe it's not included in Ubuntu or Open Sans |
@Ronso How can we check that the bundled OpenSans font is actually loaded and used? The log file does not contain any messages. |
Custom fonts are loaded as expected. But there is a system-wide Open Sans font in Fedora that might be picked instead. |
Naa, it's just that the triangle is not included in Ubuntu or OpenSans, both have a very limited set of glyphs and neither contains the Geometric Shapes range 25A0—25FF. So we have to live with that for now. |
Does it still look like the screenshot at the top for you? With an extra space before the triangle it's much more relaxed: |
I think the triangle looks weird. Why not just a colon ( |
We had the colon earlier, it just doesn't separate the prefix and search string enough, thus the triangle. |
I think a colon is fine. The triangle is okay, but it's a bit odd because it is similar to the submenu icon. I don't care much either way. I agree that a dash would not be a good choice. |
To stick with ASCII characters I have replaced the right triangle with the pipe symbol. This is more unlikely to appear in any metadata property than a dash symbol. |
Please post a screenshot when significant GUI changes are made to a PR. |
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.
Thanks, looks good!
tbh I'm not happy with the pipe symbol, but we can tweak this later on. |
TODO:
Turned out to be trickier than expected.