You are not logged in.
Question: Okay the gtk2-platform theme solution is elegant as even if the user changes themes the qt should follow, the issue now is with qt6 which doesn't want to abide.
So not as elegant, but for purposes of having qt6 apps at least abide by BL's default theme(s), is it not possible to simply add a .qss stylesheet file/folder in the default theme?
That sounds like something we should at least try. Maybe @hhh will be able to do this?
So qt5 apps will go on doing the right thing, and qt6 will at least look OK in the default BL theme(s).
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
I think Qt6 might need https://github.com/trialuser02/qt6gtk2 but I can't find it packaged for Debian and I'm having trouble building it in trixie/Carbon.
EDIT: +1 for the OCD. I'm not gonna sleep well tonight...
Found one:
https://software.opensuse.org/download. … ge=qt6gtk2
Unfortunately it's the .2 version instead of the latest .3, but it still works on my system (bookworm-based). I didn't even need to change the export line in .xsessionrc, the developer made sure it would work alongside the qt5-gtk2-platformtheme.
So "export QT_QPA_PLATFORMTHEME=gtk2" works for everything.
For the two programs I tested:
Cutemaze : works perfectly.
Calibre: The colors are there, but I use a dark background for my drop-down menus and it didn't change the font color to a light one, so i've got black text on a dark blue-black background. It does change to white lettering when I hover (with my lighter-blue highlight color for the background). And for drop-down menu entries not currently able to be selected ("grayed out") the font is messed up, looks almost like it has a gradient and is fuzzy and slightly larger.
But that's on my Mate install that is quite frankly a mess as i've abused it testing all kinds of crap, it may work better in one of my clean Openbox installs, will log out here in a minute and go test.
But hopeful sign here, now if we can just get a .deb of the latest one it may be good-to-go and provide uniform theming.
Last edited by greenjeans (2025-02-16 22:57:52)
Offline
Calibre still has the same issues in my Openbox installs. That could be due to issues with my theming, it might work for BL's theme(s). Or it could just be an issue due to this being an older version and might possibly be fixed in the newest .3 version.
But it's a great solution if it can be made workable. I'll try some other qt6 stuff and see how it does, Calibre is a behemoth of a program, not really surprising that there's some small issues.
Offline
Head_on_a_Stick wrote:I think Qt6 might need https://github.com/trialuser02/qt6gtk2...
Found one:
https://software.opensuse.org/download. … ge=qt6gtk2Unfortunately it's the .2 version instead of the latest .3, but it still works on my system (bookworm-based). I didn't even need to change the export line in .xsessionrc, the developer made sure it would work alongside the qt5-gtk2-platformtheme.
So "export QT_QPA_PLATFORMTHEME=gtk2" works for everything.
Nice find!
Great for testing, but ofc to ship it in BL we'll have to build it ourselves from publicly available source code.
I'm having trouble building it in trixie/Carbon
So that will have to be fixed somehow. But good to know qt6gtk2 exists anyway!
Apart from VLC, another QT app everyone will want to run is Synaptic. Isn't LibreOffice QT too? But maybe all those are still QT5 and OK with GTK2 theming?
Last edited by johnraff (2025-02-17 01:47:35)
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Synaptic is still gtk at least in current form (bookworm). Libreoffice is GTK3 but offers choices of QT5 and QT6 support. Which is super-cool, I believe Transmission is this way too offering a version in GTK or QT.
Offline
^Thanks for straightening me out there. Don't know where I got that idea about synaptic.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Now we need to just sweet-talk HOAS into building the .3 version for trixie/Carbon.
I don't even have a trixie version installed, it's like playing whack-a-mole while it's not frozen. I tried updating the iso I built a month ago when I had a working version the other day and it completely crapped itself out. Not BL mind you, that might be a different story.
I will try though if need be. Only issue I saw somebody have with it was a year ago and they didn't have the QT6 version of qmake.
Offline
Do you have any idea where I can find the Debianization source code of that .deb package on opensuse? IE the debian/ directory that needs to be added to the github source for it to build. Once I had that I could likely edit it to build .3 on Trixie, given the necessary libraries are available.
Even without that, it might be possible, but would take longer to figure out the necessary Debian build-dependencies etc to add.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Do you have any idea where I can find the Debianization source code of that .deb package on opensuse?
It is here: https://build.opensuse.org/package/show … 93/qt6gtk2
You have to be an OBS member to download the files but it's free to join (and very useful). I should be able to get a trixie version building in my own repository using those sources. I'll try tonight when I get home from $DAYJOB...
EDIT: found a non-member download page: https://build.opensuse.org/projects/hom … 2/binaries
EDIT2: and here's what my build was missing:
override_dh_auto_configure:
ln -s /usr/bin/qmake6 ./qmake
PATH=`pwd`:$(PATH) dh_auto_configure
Looks like Debian could do with a qmake alternative...
Last edited by Head_on_a_Stick (2025-02-17 08:00:23)
Offline
Yeah I read another post where someone was trying to compile it and had issues with qmake.
Maybe one of the Arch folks might be able to help as they got it packaged.
There was one other place I found it , a PPA for Ubuntu but it too was the .2 version.
Offline
Debian bookworm & trixie packages for v0.3 available here:
https://software.opensuse.org//download … ge=qt6gtk2
Full sources are here. The trixie package installs fine in my Carbon test system.
EDIT: and perhaps I should apologise to the OP for hijacking their thread
Last edited by Head_on_a_Stick (2025-02-17 19:47:39)
Offline
Nice work! Downloaded and trying here shortly as soon as I get this @#%$@# water pipe fixed. Thank you!
I'm probably more to blame for thread-jacking, sorry about that OP.
This is great, the qt stuff has been bugging me for months really.
@Head_on_a_Stick would it be okay with you if I uploaded a copy of the package to my spot on Sourceforge? With all credit due of course. If not that's totally cool, I can just post a link.
Offline
Share whatever you want, no need for "credit", all I did was bump the version of the package created by unit193 :-)
Offline
Cool!
So I installed the amd64 version. I also installed some more qt programs, kinda hard to find ones using qt6 but I got a couple more, plus some more qt5 stuff.
Everything works perfectly except for Calibre, don't know what it is about that thing, it's even more ornery than I am. In the main interface the tooltips are all white with white lettering so you can't read 'em, and that's pretty bizarre as theme background for tooltips is dark. In the editor interface it's still doing the thing I described above with the dropdown menus, made the background dark but didn't change lettering to white so you can hardly see the black lettering.
All the rest are working perfectly and looking really nice. Strawberry, Tea, Fraqtive, Cutemaze, Tetzle, Qosmic etc.
Offline
Debian bookworm & trixie packages for v0.3 available here:
https://software.opensuse.org//download … ge=qt6gtk2
Full sources are here. The trixie package installs fine in my Carbon test system.
EDIT: and perhaps I should apologise to the OP for hijacking their thread
Great work! ( And apologies to OP if you're still with us. )
So from a user's POV, all that is needed is to install qt6gtk2 (along with the current qt5-gtk2-platformtheme and probably libqt5svg5) and carry on with the existing evvar setting?
If no issues come up, lets add qt6gtk2 to our Carbon packages (and a copy of the source to our repos of course).
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Follow-up:
@HOAS maybe @micko01 will add your qt6gtk2 to his experimental repo?
https://forums.bunsenlabs.org/viewtopic.php?id=9031
You've already got the necessary tarballs etc so it should be simple.
So testers could easily install it, and we can migrate the package to the BL official repos later.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
^ Sounds good. Which files would be needed? Are they all available in the source link I gave above? Just let me know if any are missing.
Offline
There are instructions on @micko01's repo, linked from the forum post I linked above, but anyway:
https://github.com/01micko/01micko.github.io
So you're asked to make a PR with the necessary files inside a temporary directory.
Micko might be busy atm but of course he's the canonical reference, and he's the one who would upload to the package repo.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
There are instructions on @micko01's repo, linked from the forum post I linked above
Ahem, yes, of course. Sorry about that
make a PR with the necessary files inside a temporary directory
Okay but it will have to be in the form of an email because I killed my GitHub account and I refuse to make another.
Offline
Could you contact micko01 directly about that?
I don't see any problem with sending a big tarball holding all the files, but there might be issues he knows about.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline