The officially official Devuan Forum!

You are not logged in.

#1 2025-09-12 23:46:22

HardSun
Member
Registered: 2025-07-29
Posts: 6  

gtk3 icon theme per application settings

Hi, just wondering if anyone knows of this can be done.

I know i you can set the gtk3 theme per application as in below .desktop file, but i want to change the icon theme to match as well.
So for instance, im using the adwaita dark theme globally. But in geany i would like the application to be the adwaita light theme with papirus light icons. Doesnt seem like it can be done, ive searched for a few hours and come across old gtk2 ways of doing it.

snip ...Exec=env GTK_THEME=Adwaita:light geany %F

[Desktop Entry]
Type=Application
Version=1.0
Name[en_GB]=Geany
Name=Geany
GenericName[en_GB]=Integrated Development Environment
GenericName=Integrated Development Environment
Comment[en_GB]=A fast and lightweight IDE using GTK+
Comment=A fast and lightweight IDE using GTK+
Exec=env GTK_THEME=Adwaita:light geany %F
Icon=geany
Terminal=false
Categories=GTK;Development;IDE;TextEditor;
MimeType=text/plain;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-dsrc;text/x-pascal;text/x-perl;text/x-python;application/x-php;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/xml;text/html;text/css;text/x-sql;text/x-diff;
StartupNotify=true
Keywords=Text;Editor;
Path=

Offline

#2 Yesterday 23:40:46

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

Re: gtk3 icon theme per application settings

Hmmm..don't know the answer, but perhaps I have a tidbit that may help some. To alter Pluma which is the text-editor I use, at least insofar as internal colors, I had to mod a file in /usr/share/gtksourceview4/styles (classic, which is default in Pluma) to have an effect, these files seem to override gtk3 settings in the global theme. But I don't see anything about icons in that file currently, but perhaps that's another parameter that could be altered in that file.

Last edited by greenjeans (Yesterday 23:42:43)


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded August 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