-
Notifications
You must be signed in to change notification settings - Fork 12
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
Renaming kde-plasma theme to KDE-Plasma breaks existing user configuration #69
Comments
This is expected so users will explore other themes ;) |
I agree.
Will it work? I haven't tested. |
Nope, realized after writing - users end up with both themes in lxqt-appearance. |
Yep, I only noticed that after testing
A note sounds good! |
A more fundamental solution can be case-insensitivity in the code that's responsible for reading and applying the key. In LXQt Appearance Configuration → LXQt Theme, the first letters are already capitalized. So, maybe, we should have considered case-insensitivity from start. |
We could also revert the renaming. I just didn't think about existing config break. |
Then, the same problem will happen for a few git users that have already upgraded LXQt ;) I think case-sensitivity is a problem, that has been ignored so far. If the theme names are supposed to be case-sensitive, why are they capitalized in the GUI? |
Yes, that's good for now. |
BTW, KDE-Plasma theme has the same problem that I worked around in Kvantum theme in #64. The problem is in Qt's stylesheet support. EDIT: I mean this: |
So the first PR for 1.2.0 ;) |
`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
→ lxqt/liblxqt#308 (logging out and in is needed). |
Maybe this is not a bad option. Only a few users are affected by double renaming. Other users, who will likely upgrade from 1.0.0 to 1.1.1 or newer, will not be affected. In the future, to address the name issue mentioned in #57, we may specify the name "KDE Plasma" in a file like
(the Ukraine translation is copied from https://kde.org/uk/) |
Sounds good, a more complete solution. Maybe a kind of .desktop/.yaml file as used for panel plugins, so it can contain also a description. |
Good reminder! It's nice to adopt existing codes/scripts/infrastructure/workflow/... for the new file format. Just don't use .desktop file extension as they are not desktop entries ;) |
`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
…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
Seems the issue is not completely fixed. I just upgraded my other Arch machine to LXQt 1.1, and ambiance appeared again. |
That's strange. There were 2 commits to change default icon theme and default theme, but this should'nt affect at all existing files in |
Yes, more change is needed, in Instead, EDIT: |
I didn't test the newer versions with an upgrade in VM Ubuntu (upgrading using the ppa for 1.1.0 didn't change the theme as expected) but I see that they used a space in the filename:
|
@yan12125, that may be inevitable. When the upgrade is done from inside an LXQt session, |
And, fortunately, |
That sounds reasonable. If there is no way to fix it, are case-sensitivity PRs still needed? I prefer to handle inconsistency among folder names and theme names in a more a more generic way instead (ex: #69 (comment)). Such a feature, which will be after 1.1.1, is useful for other use cases (ex: lxqt/lxqt#455, which I mentioned earlier), and may get complicated with case-insensitive folder names. |
@yan12125 Since @palinek doesn't like it, if you've also changed your mind, I should reverse lxqt/liblxqt#308 and close the non-merged PRs. Please tell me what I should do! This is (and was) a matter of team decision. |
tsujan ***@***.***> 於 2022年5月1日 週日 02:15 寫道:
@yan12125 <https://github.com/yan12125>
I continued the case-insensitivity PRs (there are two non-merged ones),
partially because you approved the first PR. Personally, I think it's
better to treat theme names case-insensitively and, because of your
approval, I thought you had the same idea.
I have no strong opinion whether theme names should be case-insensitive or
not. I approved it as I thought it could fix a regression, while it turns
out not working in general cases.
Since @palinek <https://github.com/palinek> doesn't like it, if you've
also changed your mind, I should reverse lxqt/liblxqt#308
<lxqt/liblxqt#308> and close the non-merged PRs.
Please tell me what I should do! This is (and was) a matter of team
decision.
This is also a matter of team discussions besides team decisions :) Let me
expand my last statement: I have a concern about code complexity if we want
to keep case-insensitive theme names and adding features like translated
theme names in the future. If that's the case (I guess so), I prefer a more
generic approach to address inconsistency between theme folder names and
displayed names and forget about case-insensitivity. If you think such code
complexity will not happen, feel free to continue th work! I also checked
the other two open PRs for case-insensitivity. They work as intended and
the code logic is good, and both can be merged in the current form.
… —
Reply to this email directly, view it on GitHub
<#69 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOZCGN3C43UGWZ3AUKK6GTVHV2FFANCNFSM5TSQKUBA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks for your reply!
As for the code complexity, I don't think there's any. Of course, each feature needs extra codes. In this case, they are only lxqt/liblxqt#308 (already merged), lxqt/liblxqt#309 (a one-line change) and lxqt/lxqt-config#848 (actually, a little simpler than the current master). My main concern is different from yours. As I've mentioned before,
Therefore, sooner or later, we'll have to change those names. But that will be badly backward-incompatible and will break almost all theme settings after an update. |
Oh, I forgot the possibility of transliteration for theme names! Yes, theme names can be translatable but that's only about how they appear in the list, not how they're found by the code. I don't think it's related to case-insensitivity or case-sensitivity. |
Got it, completely reasonable! Now I'm fine with continuing the work on case-insensitive themes names.
Although irrelevant now, let me share my earlier idea: before removing capitalization, there should be a way to specify displayed names for themes. For example, with a config file like
(This is similiar to an earlier example, while I changed it a little to avoid confusion) The theme with name |
Very good point! It hadn't occurred to me. It removes my concern :) Thanks! So, we could remove capitalization when implementing this feature, which will also be necessary for translation (or transliteration). In that way, there will be no need to case-insensitivity — the less code, the better. If, after a day or two, no other reason for case-insensitivity comes to my mind, I'll reverse the PR in question and close the other two. Your solution seems much cleaner. |
This reverses ead8cee. After a discussion with @yan12125, it turned out to be redundant (especially see lxqt/lxqt-themes#69 (comment)).
This reverses ead8cee. After a discussion with @yan12125, it turned out to be redundant (especially see lxqt/lxqt-themes#69 (comment)).
Done. Now We need to implement |
Just noticed LXQt had a similar issue around folder name cases years ago: lxqt/lxqt#500 |
Expected Behavior
My favorite theme continues to work after upgrading from lxqt 1.0.0 to 1.1.0
Current Behavior
This line
theme=kde-plasma
in~/.config/lxqt/lxqt.conf
no longer works, and another theme is picked (ambiance in my case). I need to usetheme=KDE-Plasma
to bring my favorite theme back. (I believe most users use lxqt-config-appearance. Editing files directly is just my preference.)Possible Solution
Steps to Reproduce (for bugs)
Context
Testing whether LXQt 1.1.0 explodes :)
Related: #68.
System Information
(All LXQt packages are built locally using Arch Linux PKGBUILDs)
The text was updated successfully, but these errors were encountered: