Standard action icons in Qt apps not matching selected theme

Archived topics about LMDE 1 and LMDE 2
Locked
willsha360

Standard action icons in Qt apps not matching selected theme

Post by willsha360 »

This may be somewhat nitpicky, but I have noticed that several programs written with Qt do not respect the icon theme as set in xfce4-appearance-settings. All of my Qt apps still use the default Mint-X icon theme for toolbars, icons in menus, etc., which causes them to look a bit out of place compared to other programs. I have several icon themes installed; switching them in the appearance settings affects the rest of the system, but does nothing for Qt apps.
Example programs are: designer-qt4, transmission-qt
This doesn't apply to KDE apps (I believe these are written using Qt libraries as well), which seem to have their own icon theme altogether.

Looking at the transmission-qt program source code, the icons are returned by a call to QIcon::fromTheme().
I perused the Qt API documentation and opendesktop specs, but I couldn't find any configuration file that tells the Qt library where to get these icons from.

The qtconfig program looked promising, as it allows configuring many aspects of the appearance of Qt apps, but there is nothing there to set the icon theme.

I realize that I could probably rename the Mint-X icon directory and symlink it to the icon theme I want, but I think there's a better solution out there.

Oh, I'm running LMDE amd64 XFCE update pack 4.
Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
cra1g321

Re: Standard action icons in Qt apps not matching selected t

Post by cra1g321 »

not sure if LM has this (might need to be installed), but when I'm on Debian i run

Code: Select all

qtconfig qt4
in a terminal, set the theme to GTK+ and the font,

Close the window, it will ask do i want to save, hit yes and my QT programs instantly match up near perfect with my GTK programs.
willsha360

Re: Standard action icons in Qt apps not matching selected t

Post by willsha360 »

This didn't work for me. It seems everything else matches my system theme, just not the action icons (ie new file, save, save as, etc.) on the toolbars and menus.
I will poke around a bit more and see what I can find out.
Locked

Return to “LMDE Archive”