[SOLVED] GTK Theme and fonts not applied to Root QT5 apps

Post Reply
Message
Author
tomec
Posts: 7
Joined: Tue Jan 08, 2019 1:15 am

[SOLVED] GTK Theme and fonts not applied to Root QT5 apps

#1 Post by tomec »

Hi again!
For some reason I had a strange issue with theme and fonts settings not being applied to Root QT5 applications like mx-packageinstaller. After tinkering around a little, here is what made the trick.

User-level qt5ct was correctly set, so I eventually went to the terminal and:

Code: Select all

sudo -i env QT_QPA_PLATFORMTHEME=qt5ct qt5ct
/etc/environment already contained the right value for this variable, but (running as sudo -i) qt5ct still complained about it.
Settings were all different, so I again changed style to gtk2, icons to Papirus and fonts to Ubuntu ones.
So far, these changes are sticking :crossfingers:

User avatar
Adrian
Developer
Posts: 8268
Joined: Wed Jul 12, 2006 1:42 am

Re: [SOLVED] GTK Theme and fonts not applied to Root QT5 apps

#2 Post by Adrian »

How do you launch the tools? From menu or terminal? In general I use "sudo -E mx-packageinstaller" to preserve the environment, also launching them from menu should be fine.

tomec
Posts: 7
Joined: Tue Jan 08, 2019 1:15 am

Re: [SOLVED] GTK Theme and fonts not applied to Root QT5 apps

#3 Post by tomec »

I'm usually launching all the programs from menu.What made me rush to a "fix" is that this was not happening at all on my ancient netbook, where I installed MX18 just yesterday.

Post Reply

Return to “General”