Forum › Forums › Official Releases › antiX-21/22 “Grup Yorum” › Qt4 not inheriting GTK theme + desktop icons
- This topic has 11 replies, 8 voices, and was last updated Sep 3-3:05 pm by iznit.
-
AuthorPosts
-
September 2, 2022 at 11:57 am #87933
tizianomattei
MemberHi, sorry to bother you all again, but I have a couple more issues with my Antix21 install, two minor ones this time.
1) I can’t set Qt4 apps to follow the GTK theme. I was successful with Qt5 apps, using qt5ct and setting the requested environment variable.
The file ~/.config/Trolltech.conf seems alright, here is its content:... [Qt] style=GTK+ ...2) I must have messed up with some config file, but I can’t remember which… now my desktop shows the icons in my home folder instead of the ones in my Desktop folder.
It may be related to the fact that I deleted my Desktop folder altogether, but I’ve already tried recreating it (both with its italian name “Scrivania” and the english one), rebooting, and nothing happens.September 2, 2022 at 1:10 pm #87935
manyroadsMemberSee: http://wiki.gentoo.org/wiki/GTK_themes_in_Qt_applications
Pax vobiscum,
Mark Rabideau - http://many-roads.com
"For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
dwm-i3wm ~Reg. Linux User #449130
2026- the Second-Coming, Came-- and it's a train wreckSeptember 2, 2022 at 3:44 pm #87941
techoreMemberI, also, found http://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications useful, but I have, yet, to find a 100% solution. Amazing how much time you can spend trying to get a uniform look between gtk and qt and their differing versions.
At this time, I am exploring using kvantum but unclear if that supports both qt4 and qt5.
Knowledge speaks, but wisdom listens.
September 2, 2022 at 5:29 pm #87946
Brian MasinickModeratorGetting a truly uniform user interface is quite a challenge, especially if you attempt to support multiple toolkit interfaces.
Not technically impossible; my ‘gut reaction ‘ is that to be truly uniform you may have to invest or invent an intermediate interface that either provides or compensates for the many tools and toolkit interface differences and peculiarities.
Not a trivial thing to solve at all!
--
Brian Masinick
Alternate "Search B":
This search pageSeptember 2, 2022 at 5:32 pm #87947
marcelocripeMemberHello tizianomatte.
If you’re using a desktop that doesn’t have Rox or zzz at the beginning of its name, that’s probably why you can’t see shortcut icons or .desktop files.
To access other antiX workspaces, click on Menu, Desktop, Other Desktops and click on the workspace name, instantly the workspace will be loaded.
marcelocripe
(Original text in Brazilian Portuguese language)– – – – –
Olá tizianomattei.
Se você estiver utilizando uma área de trabalho que não possua Rox ou zzz no início do seu nome, certamente seja este o motivo de você não conseguir ver os ícones de atalho ou arquivos .desktop.
Para acessar as outras áreas de trabalho do antiX, clique no Menu, Área de Trabalho, Alternar Entre as Áreas de Trabalho e clique sobre o nome da área de trabalho, instantaneamente a área de trabalho será carregada.
marcelocripe
(Texto original em idioma Português do Brasil)September 2, 2022 at 8:54 pm #87952tizianomattei
MemberHi all, and thanks for the time you all spent to answer.
Oddly enough, no one seems to get any of the points, which makes me think I’ve been unclear.
I’m sorry for that and I’ll try to be more specific now.
1) I’ve never had any problem to have a consistent look between at least the two main toolkits. Qt5 can be set to inherit the active GTK theme via qt5ct and, at least until Antix-19, Qt4 could simply be set via the file Trolltech.conf, which I know should read exactly what it reads; however, it doesn’t seem to work now, and I wonder why… maybe some missing libraries, that were present in Antix-19?…
2) Marcelocripe, the problem is not that I don’t see the desktop icons. On the contrary, I now see all the folders in my home directory (Documents, Images and so on…) on my desktop. Normally, the content of ~/Desktop should appear, instead. And, specifically, I usually keep this folder empty, so that I have no desktop icons (I don’t want icons on my desktop). I’m currently using the zzz-jwm session, although customized by me. I’m now looking for a way to have all those unwanted icons disappear, without switching to a ‘minimal’ session. Any ideas?
September 2, 2022 at 9:48 pm #87953
dolphin_oracleForum Adminwhat qt4 app are you using?
some apps do not accept a theme. there are a few third party apps I can think of. XnView is one. sometimes Qt apps let you select a theme internally, or at least a theme plugin, like ksnip, and sometimes they default to something other than the system.
September 2, 2022 at 10:00 pm #87955
iznitMemberantix21 is based on debian bullseye. Debian dropped qt4 support prior to releasing bulleye so, yeah, “
somequite a few missing libraries”.Wait, so are you actually running qt4 gui programs on antix21? via wine??? flatpak??? appimage???
September 3, 2022 at 8:29 am #87964tizianomattei
MemberWait… so you are saying those are NOT qt4 apps?! O.o
I’m talking about vlc and the nextcloud client, that you see in the screenshot.
Everything else inherits the arc-dark theme, but they refuse to.
In antix-19, they inherited the theme without problem…
If they are qt5 apps, then what’s happening here?EDIT: the same happens with qpdfview…
- This reply was modified 4 years ago by tizianomattei.
Attachments:
September 3, 2022 at 10:18 am #87969
blur13Memberhttp://www.antixforum.com/forums/topic/dark-theme-not-working-for-some-apps/
I had a similar problem, maybe the above topic will help you.
September 3, 2022 at 11:06 am #87971tizianomattei
MemberThank you blur13!
Sorry I didn’t find your post before.
Before you wrote, I had already verified my /etc/environment and it looked alright.
Then I added the same line to ~/.profile, but with no result.
Then I found a workaround by adding the line
export QT_QPA_PLATFORMTHEME=qt5ct
to my ~/.desktop-session/desktop-session.conf file, and that worked.Now, reading about your awkward problem with the line break, I’ve tried opening /etc/environment again, deleting the trailing line break and manually inserting it again.
I commented the line I added in desktop-session.conf, rebooted and… it works!
Thank you so much.
I think this should be solved for every user, by rewriting the /etc/environment file and updating the package…Now, I’m still stuck with my second problem (desktop icons)…
- This reply was modified 4 years ago by tizianomattei.
September 3, 2022 at 3:05 pm #87989
iznitMemberWait… so you are saying those are NOT qt4 apps?! O.o
I’m talking about vlc and the nextcloud client, that you see in the screenshot.Yes, the debian package for vlc [[[actually the dependency is declared in package “vlc-plugin-qt”]]] uses Qt5. The “nextcloud-desktop” packaged for debian bullseye also uses Qt5.
-
AuthorPosts
- You must be logged in to reply to this topic.
