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
Consider LXQt theme names case-insensitively #308
Conversation
`lxqt-config` may also need a small change, but this PR ignores the letter case in the value of `lxqt.conf` → General → theme. Closes lxqt/lxqt-themes#69
The PR isn't for lxqt/lxqt-themes#69; it just closes it. Here, the main idea is that theme names "should" be case-insensitive. LXQt Appearance Configuration → LXQt Theme already capitalizes the names, implying that they aren't case-sensitive, while they are. That's an inconsistency. |
That's related to |
Ok, I see. |
In short, case-insensitivity means that you can only have one "dark" theme. If you want another one, you could call it "dark1", but not "Dark" — if you call it "Dark", it'll override "dark" because Qt sorts strings in that way and this patch picks up the first one. |
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, the code logic looks reasonable, and it works with kde-plasma.
@yan12125 |
I, for one, don't like such "windows filesystem" file matching. If theme names are capitalized in lxqt-config view, I would say it should be chnged there. Just my 2 cents. |
That was just an example that I mentioned, not the reason for the PR. |
The main reason: Distinguishing between "kde-plasma", "KDE-Plasma" and "KDE-plasma" can be confusing to users. When it can be avoided by a simple change, I see no reason why we shouldn't make that change. |
We're the main provider of themes. If we consider theme names confusing, we would just not provide them with such names. This is everything what average Joe needs. |
This is a point. When I try changes I copy them to |
Global themes are always overridden by user themes with the same names. Now, there's no need to worry about letter cases. I don't think we need to worry about probable reports. If someone wants to play with "THEtheme" after making "theTHEME" (why should he?!), he'll realize what has happened. |
No, IMO he won't realize it. He will just see one theme in the GUI to select and consider it a bug. |
Sorry, missed the button... |
Let's wait and see ;) |
Technically, no users will be affected unless this PR is merged and released. I have no strong opinion on how lxqt/lxqt-themes#69 should be addressed, but keeping it open is not good. |
Good point. Let's affect users ;) |
…sion See: lxqt/lxqt-themes#69 See: lxqt/liblxqt#308 git-svn-id: file:///srv/repos/svn-community/svn@1187645 9fca08f4-af9d-4005-b8df-a31f2cc04f65
…sion See: lxqt/lxqt-themes#69 See: lxqt/liblxqt#308 git-svn-id: file:///srv/repos/svn-community/svn@1187645 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Noticed one small thing: with this PR and |
Thanks! That was what I suspected (and mentioned in the PR's comment). |
This is needed after lxqt/liblxqt#308
Done in lxqt/lxqt-config#847 |
It wasn't guaranteed after considering theme names case-insensitively (→ #308). After this change, other components won't need to be aware of case-insensitivity of theme names.
I missed this comment before. Actually, the order was a small problem from start: user themes came first. All themes will be ordered alphabetically after lxqt/lxqt-config#848 (which requires #309). |
I liked that much: when modifying an existing theme I used a symlink to |
It was so only by chance. For example, if you made a user theme out of Ambiance, you'd have no way of telling if it was a user theme by looking at the list. Anyway, the list never distinguished between theme locations. |
In addition, now we can think about adding a real feature: distinguishing user themes in the list, e.g., by adding " (User Theme)" to their names. Maybe later... |
Your comment also reminded me of another missing feature: opening the theme folder by double clicking it in the list or by adding a context menu. Again, later... |
Sounds good, even if it was only by chance it was a good feature and having distinctions again in a more clearer way is fine. |
IMO, a list like this should be ordered alphabetically; otherwise, it'll be confusing. If the goal is distinguishing user themes, it can be achieved cleanly, without damaging UX and without extra options. |
lxqt-config
may also need a small change, but this PR ignores the letter case in the value oflxqt.conf
→ General → theme.Closes lxqt/lxqt-themes#69