-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
kde: replace kdeglobals
with Kvantum
theme
#142
base: master
Are you sure you want to change the base?
Conversation
One thing to note, I needed to use |
This is unusual because when I tested the original implementation, Dolphin followed the Stylix theme without any issues. Even the folder icons were coloured to match the theme. But I agree, Kvantum is probably more reliable if we can make it work.
This is something which we will need to be handle automatically. As a start, would it be possible to have it always set the default icon theme? |
kdeglobals
with Kvantum theme
+1 |
@danth I addressed this issue with my latest commit, with these changes I think this should be ready. |
kdeglobals
with Kvantum themekdeglobals
with Kvantum
theme
+1 |
Are there any blockers here? Would love to see this merged. |
The previous implementation based on |
You're right. The machine where I applied the HM+stylix configuration was pretty fresh, no stylix nor any other previous configuration. Now, I tried applying the same configuration to another machine which was previously manually configured, and both Gwenview and Okular worked as they are supposed to. There was a residual So, it looks like this PR will need to include |
The issue with the original implementation may also be caused by a similar problem. Using the testbed VM, the original implementation always themes KDE fully, once you have restarted Home Manager due to the fact that it can only apply the configuration while KDE is running. Perhaps we should put more work into improving the way KDE has a high number of settings across different files, any of which could be causing |
Isn't The theming of Qt applications should be DE agnostic, just like the Gtk module. This would unblock the situation regarding this PR and shift the responsibility for integration to the desktop environment in their respective modules. |
Correct. I just noticed that, contrary to the title of the PR, the original KDE module is no longer removed. This was originally the case given 20b08d3, but at some point it must have been restored.
Absolutely. See #203 regarding this. |
The following screenshots were taken after restarting a few services to get Original appearance: Appearance with this PR: The only major blocker now is that the icons are dark on a dark background, which makes them very difficult to see. The Kvantum theme does look worse than Breeze IMHO, however since Looking forward to getting this merged so we can have proper Qt support across all desktop environments :) |
Since you can configure I also think it might be worth re-evaluating how icons are handled in general - would a global icon theme setting be a good idea/worth pursuing? |
🤔 Maybe we can look at how the HM module, Plasma-Manager handles applying themes (icons, lookAndFeel, etc.) for KDE Plasma? This module in particular seems to do a good job in applying themes for Plasma 6 (which stylix currently has trouble applying, related to #350) |
Okay so I've done some more testing, it is possible to get it working with This is a bit of a hack and I don't think it's how we should choose to do things - instead, I think the best way would be to use qt5ct's "custom" color settings as a target, which means we don't depend on |
Okay more testing with |
This is such a mess. Firstly, I can only get If I try and get it working without qt5ct, I get something like this when using the command I can get it to work with qt5ct, and get the screenshot in my above post, but I'm not configuring my colors through qt5ct in that instance, I'm just telling it to use the system defaults, but it seems to just work. Make it make sense, I'm losing my mind over this. The other weird thing is that for whatever reason, the moment you use qt5ct, the bottom right storage space indicator becomes incredibly ugly (again see screenshot in above post) and I have no clue why that is. Hopefully there's some environment variable that I'm missing or something because this is driving me insane. Edit: So my best guess at the moment is that all I think the best bet is to use |
OKAY so I've finally gotten it working in the same way that it works on KDE on a non-kde system. The thing I was missing is that in order for Home-manager will install this for you if you set When you do so, the theming information is then read in from You obviously also need to set Apologies if none of this is new information but I've gone down the rabbit hole at this point, so I figured I may as well write it up. |
@Jackaed That sounds great! If you have time, would you be able to put it together as a separate PR? |
@danth Sure, I'll have a look and see what I can do. Reading through the code, there's a few things that I'm not sure I fully understand - not sure that github issues is the right place to discuss that, can we speak on matrix? |
Absolutely, feel free to use either the public chat #stylix:danth.me or message me directly @danth:danth.me |
Now that 24.05 is stable, we can change |
What is blocking the merge of this generally? |
Feel free to try my fork or use |
This PR successfully builds on my setup after setting Unless the original author, @bluskript, is willing to take over this PR again, it might be better to supersede it with a new one that is properly rebased on top of Does @donovanglover's fork resolve the issue mentioned in #142 (comment)? Please give proper credit in the squashed commit message of this rather old PR by giving
It might be good to re-confirm Daniel (@danth) and NAHO's (@trueNAHO) credit tags before merging into Please send a comment if I missed any other up-to-date mention worthy contributions. @donovanglover, do you want to take over this PR? |
I'm quite busy at the moment but anyone is free to continue working on this |
Hi, I don't really use NixOS or Github much anymore so I can't really test the features, but I rebased this branch onto master, although it still needs someone to actually test if it still works. If further changes are needed someone else taking the PR would make sense I think. The main blocker for this PR iirc is that in some places it actually causes theming regressions like in Anki but I haven't had the time to investigate why, and there was discussion that this could be done without kvantum, but again this is a lot of work to figure out. QT theming is just really confusing. |
I've been testing it a bit @bluskript, thanks for the rebase! qbittorrent-qt5 formerly worked fine with this PR, but now that Nixpkgs has dumped qbittorrent-qt5 in favour of qt6, it renders incorrectly with this PR as can be seen in the image. Qt5 applications like |
The current KDE theming system is pretty unreliable (dolphin and many other programs ignore the theme and a lot of the time the apps that do theme are completely unreadable), I always found kvantum to give a lot more pleasant themes. So, I based this off of Catppuccin's kvantum theme and it turned out to work pretty well.
It isn't perfect, and there's some weirdnesses in some colorschemes sometimes, but that's kind of how all of base16 is.
Here's Dolphin, OpenRGB, and Strawberry open all themed correctly (Strawberry is QT6 so that works too!)