You are not logged in.

#1 2014-12-26 11:59:19

Mr. SegFault
Member
Registered: 2014-10-18
Posts: 8

Cannot set theme + icon theme for GTK applications in KDE

I'm running Plasma Next with mostly KDE 4 applications, as well as a few GTK applications (Firefox, Docky, Atom editor, to name a few).
Unfortunately, I simply can't get the GTK applications to use both the oxygen-gtk theme as well as the oxygen icon theme.
Setting the icon theme *only* works. In ~/.gtkrc-2.0:

gtk-icon-theme-name="oxygen"

For some strange reason, I have to specify the icon folder name and not the actual theme name as specified in index.theme.

As soon as I try to set the theme as well...

gtk-theme-name="oxygen-gtk"
gtk-icon-theme-name="oxygen"

The icon theme is no longer respected by GTK and the applications load the ugly default icons.

I've tried setting the theme in the oxygen-gtk gtkrc file as well, tried symlinking the oxygen icon folder to ~/.icons, but nothing seems to work. The Wiki page about a Uniform look accross Qt/GTK environments didn't help either.

What should one do in order to have GTK applications in KDE look... not so '95-ish?

Offline

#2 2014-12-26 12:27:18

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: Cannot set theme + icon theme for GTK applications in KDE

Try to inspect /usr/share/icons/ folder. According to my experience, there is folder for icons in Plasma 5. Take a look at: http://www.archlike.darmowefora.pl/inde … 123.0.html or http://www.archlike.darmowefora.pl/inde … 119.0.html There'a PKGBUILD's prepared by me for FaenzaFlattr and Emerald Icon Theme for Plasma 5. And both of them works well in Plasma5 even with Gtk+ apps like Firefox or Chromium.

Offline

#3 2014-12-26 15:13:16

Mr. SegFault
Member
Registered: 2014-10-18
Posts: 8

Re: Cannot set theme + icon theme for GTK applications in KDE

pb wrote:

Try to inspect /usr/share/icons/ folder. According to my experience, there is folder for icons in Plasma 5. Take a look at: http://www.archlike.darmowefora.pl/inde … 123.0.html or http://www.archlike.darmowefora.pl/inde … 119.0.html There'a PKGBUILD's prepared by me for FaenzaFlattr and Emerald Icon Theme for Plasma 5. And both of them works well in Plasma5 even with Gtk+ apps like Firefox or Chromium.

Thanks for your suggestion. I tried installing the Emerald icon theme, but it didn't work either:

gtk-theme-name="oxygen-gtk"
gtk-icon-theme-name="Emerald"

As with the previous example, I can use the icon theme, but only when I don't use the GTK theme:

#gtk-theme-name="oxygen-gtk"
gtk-icon-theme-name="Emerald"

Last edited by Mr. SegFault (2014-12-26 15:15:10)

Offline

#4 2014-12-26 15:30:11

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: Cannot set theme + icon theme for GTK applications in KDE

Sorry, proper gtkrc and gtkrc-2.0 file for Plasma5 are stored in ~/.config/ (I think smile).

Offline

#5 2014-12-26 15:45:38

Mr. SegFault
Member
Registered: 2014-10-18
Posts: 8

Re: Cannot set theme + icon theme for GTK applications in KDE

Yes, I noticed that too. My GTK2_RC_FILES variable also points to the one in .config, which is why I removed the files in ~ and added symlinks to those in .config instead.

Offline

#6 2014-12-26 22:44:06

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: Cannot set theme + icon theme for GTK applications in KDE

Hmm.... it seems that we have gtk3 settings in ~/.config/gtk-3.0/settings.ini, now. I've choose FaenzaFlattr-Grey as gtk-icon-theme and oxygen as fallback-icon, and there are.

[Settings]
...
gtk-theme-name=oxygen-gtk
gtk-icon-theme-name=FaenzaFlattr-Grey
...

It works.
But where are correct files for icon choose for gtk2 apps in Plasma5, I don't know. For now smile

Offline

#7 2014-12-27 10:06:12

Mr. SegFault
Member
Registered: 2014-10-18
Posts: 8

Re: Cannot set theme + icon theme for GTK applications in KDE

I noticed the GTK 3.0 settings too. They do not seem to have any impact on my applications though, so I suppose Firefox, Docky, etc. all use GTK 2.0.

Offline

#8 2014-12-27 14:02:17

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: Cannot set theme + icon theme for GTK applications in KDE

Firefox 34 is build against gtk2. Firefox 35 - if I remember - is on gtk3. But... why do you not to use firefox-kde/firefox-kde-opensuse? I don't use docky, but there're many alternatives to (i.e. plank).

Offline

#9 2014-12-28 14:58:09

Mr. SegFault
Member
Registered: 2014-10-18
Posts: 8

Re: Cannot set theme + icon theme for GTK applications in KDE

The applications I mentioned were just a few examples. There may be an alternative to Firefox and maybe even to Docky, but I also use Filezilla, Thunderbird, Chromium and Atom editor. I would not like to have to use alternatives just because the GTK theming system doesn't work correctly.

Offline

#10 2014-12-29 21:06:55

Mr. SegFault
Member
Registered: 2014-10-18
Posts: 8

Re: Cannot set theme + icon theme for GTK applications in KDE

I could reproduce the very same problem with GTK 3 applications...

Offline

#11 2015-02-03 18:31:56

alexisju
Member
Registered: 2015-01-25
Posts: 10

Re: Cannot set theme + icon theme for GTK applications in KDE

I fixed this issue into Firefox using oxygen-gtk2-iconfix from AUR (https://aur.archlinux.org/packages/oxygen-gtk2-iconfix/)
KDE Plasma 5.2.0 / Firefox 35

Offline

#12 2015-02-03 19:36:34

mumen1994
Member
Registered: 2013-12-30
Posts: 2

Re: Cannot set theme + icon theme for GTK applications in KDE

So it may not be the best solution but installing GIMP fixed this for me the two times I encountered this issue.

Offline

Board footer

Powered by FluxBB