The officially official Devuan Forum!

You are not logged in.

#1 2025-03-12 22:21:56

greenjeans
Member
Registered: 2017-04-07
Posts: 1,020  
Website

Make QT5 and QT6 apps use your GTK theme

This is a drop-in solution, unlike some others that use a GUI and you have to manually adjust colors.

First install qt5-gtk2-platformtheme from the repo. For QT6 you will need to download and install the package qt6gtk2 that is appropriate for your platform, you can find them here:
https://software.opensuse.org//download … ge=qt6gtk2

Next, create (or modify) .xsessionrc in your users home folder, and add these lines:
export QT_QPA_PLATFORMTHEME=gtk2 then save and close.

That's it. You may need to logout or reboot for changes to take effect.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded April 2025!
Vuu-do GNU/Linux, minimal Devuan-based Openbox and Mate systems to build on. Also a max version for OB.
Devuan 5 mate-mini iso, pure Devuan, 100% no-vuu-do. wink Devuan 6 version also available for testing.
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#2 2025-07-14 23:21:13

greenjeans
Member
Registered: 2017-04-07
Posts: 1,020  
Website

Re: Make QT5 and QT6 apps use your GTK theme

So for the upcoming excalibur, the qt5-gtk2-platform theme is going bye-bye, The current package might still work, haven't tried it yet.

But going forward I and hopefully some folks smarter than me may have a solution in the works.

The qt6gtk2 package I mentioned above also has a version for trixie, that I have tested on Devuan excalibur and it works fine.

The same author has a qt5 version as well, qt5gtk2, no .deb package yet though, but I did a local make/install from source and it works great in daedalus, just not in excalibur/trixie yet. So hopefully I can get some real ninjas to take a look and maybe fix it. The fellows who packaged the .debs for the qt6gtk2 had to make some changes to get it to work for trixie, i'm hoping they can work that magic for this package as well.

So going forward it's a nice solution as those programs are currently maintained even if they aren't in Debian.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded April 2025!
Vuu-do GNU/Linux, minimal Devuan-based Openbox and Mate systems to build on. Also a max version for OB.
Devuan 5 mate-mini iso, pure Devuan, 100% no-vuu-do. wink Devuan 6 version also available for testing.
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

Board footer