-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add KDE theming support #43
base: master
Are you sure you want to change the base?
Conversation
aebba29
to
afe600a
Compare
Do you know the name of the Qt module that provides |
@spikespaz I have a package (and a module) for nix in https://github.com/ilya-fedin/nur-repository. Regarding the Qt module, yeah, it's qtdeclarative. |
Should be ok now |
@trialuser02 Is there anything blocking this PR? |
FWIW I tried this patch and it seems to affect the "dark mode" setting on my system in browsers like Chromium (that is, dark KDE themes don't seem to make chromium think the system is set into "dark mode", but color schemes do) Its also probably a good idea to disable copying the KDE themes as the created copies don't work |
What copying are you talking about? |
Next to the color scheme dropdown, there is an actions dropdown menu with a "Create a copy" item. I wanted to use it to try and tweak the KDE scheme and see if I can get it to trigger "dark mode". This created a copy of the file under |
Should be hidden now |
405b938
to
aef8f90
Compare
I wonder whether we want to handle that new thing of KDE frameworks reading kdeglobals directly instead of following Qt settings (icon theme/widget style)? That would mean modifying kdeglobals thus changing the settings of Plasma session (if one has it)... |
91d3e81
to
89a2bd4
Compare
Implemented it. Also made PRs with some changes that should make qt6ct behave way less buggy: But it seems there are low changes of them being merged given maintainer's inactivity... |
@ilya-fedin pls update the aur package <3 |
It has the latest version of the patch... |
@Prepodobnuy you may need to rebuild the package with the new Qt version |
@Conan-Kudo @grulja Do you think we could have this in Fedora? |
5fdf5b9
to
ff3e831
Compare
I've splitted theming bits to separate commits. They are also now optional so qmake build works (but builds without any KDE theming bits of course). idk whether anyone needs it but I splitted the commits refactoring Qt6CT::{resolvePath,loadColorScheme} to a separate PR (#58) and while working on optionalisation, I also made cmake build to support building without QtWidgets (#57). |
8a93007
to
de710a2
Compare
If anyone needs all commits from all PRs rebased on top of each other, based on 0.9, as in my packages, here they are: https://github.com/ilya-fedin/qt6ct/tree/shenanigans |
This allows to style applications that use KStyleManager
0ed4895
to
280b5f5
Compare
It has KDE color schemes support that prevents dark icons on dark background
With KF 6.8, applications using KColorSchemeManager should start to follow palette changes in runtime just like applications not using it |
FWIW, I also tried (unsuccessfully) to communicate the kvantum dev that he does things that make the palette stuck even after switching out of Kvantum to other style in runtime, both with vanilla's qt6ct AA_SetPalette check and my |
Perhaps your icon theme just has no such icon so it falls back to Breeze? |
Hmm, I think you may be right. I've tested some other themes and all of these are themed correctly. |
Maybe it just looks similar but still from some other icon theme on KDE session? |
I found the missing icon, it was the |
KDE applications are a notable part of the popular Qt software in the Linux world.
Sadly, they have their own theming add-ons that are applied through QPlatformTheme.
This adds support for all aspects of the KDE applications theming present in the plasma-integration QPlatformTheme:
I also have a qt5ct variant of this patch but I don't have a SourceForge account nor SVN experience to send it there... If you wish I can upload the patch here as a file.
Fixes #38