You are not logged in.

#1 2013-08-01 21:07:46

hotvic
Member
Registered: 2013-02-11
Posts: 109

[Solved] GTK2 and GTK3 with different themes under XFCE4

Is possible use different themes under XFCE4 ?

when I wasn't using XFCE4 I set under ~/.gtkrc-2.0 and ~/.config/gtk-3.0/settings.ini but XFCE doesn't follow this.

for example, GTK2 'GrayDay' and GTK3 'Uncomplicated-Orange'

Last edited by hotvic (2013-08-03 11:08:09)

Offline

#2 2013-08-02 22:59:09

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 389

Re: [Solved] GTK2 and GTK3 with different themes under XFCE4

Yes, it is possible.
Use a symlink like this:

/usr/share/themes/Uncomplicated-Orange/gtk-2.0 -> /usr/share/themes/GrayDay/gtk-2.0

Then choose the GTK3 theme in the theme settings window.
Using gtkrc-2.0 and gtk-3.0/settings.ini is no more needed with this solution.

Offline

#3 2013-08-03 01:17:08

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: [Solved] GTK2 and GTK3 with different themes under XFCE4

Hmm this looks like a dirty workaround, normally this shouldn't needed.


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

#4 2013-08-03 02:32:31

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] GTK2 and GTK3 with different themes under XFCE4

XFCE sets the theme using XSettings. Sadly, there is only one setting for both themes, so you cannot choose different ones with it. The best approach would be to create a new theme in ~/.themes and symlink all different parts into it, then choose it as your theme in xfce.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2013-08-03 11:07:01

hotvic
Member
Registered: 2013-02-11
Posts: 109

Re: [Solved] GTK2 and GTK3 with different themes under XFCE4

Thank you guys!

mixed Radioactiveman and progandy solutions.

created ~/.themes/hotvic, then linked gtk-2.0 and gtk-3.0

cd ~/.themes
mkdir hotvic && cd hotvic
ln -s /usr/share/themes/GrayDay/gtk-2.0
ln -s /usr/share/themes/Uncomplicated-Orange/gtk-3.0

Offline

Board footer

Powered by FluxBB