Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recent update made Qt6 no longer use qt5ct
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mi_unixbird
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2015
Posts: 134

PostPosted: Mon Nov 25, 2024 1:30 am    Post subject: Recent update made Qt6 no longer use qt5ct Reply with quote

I use qt5ct to set my theme, specifically I use it to edit qtcurve. After the update to Qt6 for some applications, in particular Kate, this still worked fine and with QT_QPA_PLATFORMTHEME=qt5ct the QT6 applications still respected that.

But after a recent update that's gone and they switched to obeying qt6ct, which would be fine if not for the fact that qtcurve doesn't exist for qt6 at this point so it all looks very mismatched.

Is there some particular reason for this and a way to force it to use qt5ct again?
_________________
execctl --path exec filectl --current-directory list
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2882

PostPosted: Mon Nov 25, 2024 4:18 am    Post subject: Reply with quote

Qt6 applications simply cannot use Qt5 theme plugins like qt5ct, if it "worked" before then there must be some confusion (maybe that particular application was not ported to Qt6 yet).

fwiw qt6ct also recognizes *THEME=qt5ct (so that the variable can be set for both Qt5 and Qt6 at same time), but that doesn't mean that Qt6 applications are ever actually using qt5ct (it's using qt6ct if it's installed and whatever settings you have there).
Back to top
View user's profile Send private message
mi_unixbird
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2015
Posts: 134

PostPosted: Mon Nov 25, 2024 12:30 pm    Post subject: Reply with quote

Ionen wrote:
Qt6 applications simply cannot use Qt5 theme plugins like qt5ct, if it "worked" before then there must be some confusion (maybe that particular application was not ported to Qt6 yet).

fwiw qt6ct also recognizes *THEME=qt5ct (so that the variable can be set for both Qt5 and Qt6 at same time), but that doesn't mean that Qt6 applications are ever actually using qt5ct (it's using qt6ct if it's installed and whatever settings you have there).
The last Kate update was in 13 October looking at it though so something was definitely different. I'm pretty sure I restarted kate at least once since then.

Note that I didn't even have qt6ct installed at that time. I specifically installed it because Kate looked weird to see if it would fix it, but it didn't.
_________________
execctl --path exec filectl --current-directory list
Back to top
View user's profile Send private message
mi_unixbird
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2015
Posts: 134

PostPosted: Mon Nov 25, 2024 12:40 pm    Post subject: Reply with quote

Okay, I found it now; it's actually fairly weid how it should be done. There are two settings in Kate under “Settings” “application style”. This can actually just be set to “qt5ct”, at which point it still looks weird in the wrong colors, but there's also an “application color scheme” setting. This should be set to “default” which will then pick the qt5ct color scheme when done.

It indeed doesn't actually seem to use qt5ct's qtcurve but only an approximation thereof, but I think this is what I had before. No idea why this suddenly got flipped.

Looking at it it can only actually be set to either qt5ct or qt6ct when the latter be installed as it disappeared again after I removed it and I didn't have it installed before so though it sort of works now, there has definitely been some change.

In fact, it doesn't seen to save it is the issue, when restarting it it always puts the colors back to light; it's a quick thing to set it back and I tend to continuously keep my text editor on, but it's a bother all the same.
_________________
execctl --path exec filectl --current-directory list
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31345
Location: here

PostPosted: Mon Nov 25, 2024 1:17 pm    Post subject: Reply with quote

I also had some problems with qt6ct the theme of kate and dolphin (kde-frameworks 6.7.0 and kde-apps 24.08.1).
I solved it by applying this patch to kde-frameworks/kcolorscheme package.
See also:
https://github.com/trialuser02/qt6ct/issues/38
https://invent.kde.org/frameworks/kcolorscheme/-/merge_requests/28
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
mi_unixbird
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2015
Posts: 134

PostPosted: Tue Nov 26, 2024 2:56 pm    Post subject: Reply with quote

fedeliallalinea wrote:
I also had some problems with qt6ct the theme of kate and dolphin (kde-frameworks 6.7.0 and kde-apps 24.08.1).
I solved it by applying this patch to kde-frameworks/kcolorscheme package.
See also:
https://github.com/trialuser02/qt6ct/issues/38
https://invent.kde.org/frameworks/kcolorscheme/-/merge_requests/28


I tried the patch which required some editing since half of it was already applied to my kcolorscheme by the looks of it but it did nothing.

It seems more of an issue of Kate not saving settings here now. It has a setting to use qt5ct and it's default color scheme, and while it keeps the former setting during restarts, it somehow ignores the latter and has to be set to it again after each restart.
_________________
execctl --path exec filectl --current-directory list
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum