You are not logged in.

#1 2011-08-02 13:55:05

Modeler
Member
From: United Kingdom
Registered: 2011-07-28
Posts: 70

[Solved] lxappearance can't set GTK2 themes in v0.5.1

Hi all,

I have an LXDE system running with lxappearance-0.5.0 installed and can use lxappearance to set the theme e.g. Clearlooks, Crux and such. If I then upgrade the package to lxappearance-0.5.1, the colours are changed but there are no widgets (just the basic non-themed ones). No errors appear in the terminal window at any point.

If I roll back the change, everything's working again. I managed to recreate the issue on another system, so I'm assuming this version is broken. Can anyone confirm if this is a bug?

Thanks.

[Edit] Just noticed that in v0.5.0, all themes work except Adwaita which I'm sure is a GTK3 theme. In v0.5.1, Adwaita is the ONLY theme that works. Maybe lxappearance is built to handle GTK2 or GTK3 themes, but not both? Sorry if I'm confusing the issue any further.

[Edit] Fixed in lxappearance 0.5.1-2.

Last edited by Modeler (2011-08-03 21:47:24)


Wirth's law: "Software is getting slower more rapidly than hardware becomes faster"

Offline

#2 2011-08-02 14:55:33

nbtrap
Member
Registered: 2011-02-24
Posts: 110

Re: [Solved] lxappearance can't set GTK2 themes in v0.5.1

I noticed this myself. It seems like the latest lxappearance (0.5.1) has been ported to GTK3, and trying to set the GTK2 theme with it does not work so well. I tried installing it with abs and deleting the --enable-gtk3 config option from the PKGBUILD file, but that only seemed to change the appearance of the application back to GTK2--it did nothing to correct how it handled the themes. I ending up giving up and manually configuring my ~/.gtkrc-2.0. For example, here is mine:

gtk-icon-theme-name = "nuoveXT2"
gtk-theme-name = "Clearlooks"
gtk-font-name = "FreeSans 10"

See https://wiki.archlinux.org/index.php/GTK+ for more information. Another option would be to install a different application such as gtk2_prefs or gtk-theme-switch2, but I didn't find any of these to be as robust as lxappearance. You might also want to look at lxappearance2-git in AUR. Don't bother with the lxappearance-gtk2 package, as it is merely lxappearance 0.5.1 with a GTK2 interface.

Offline

#3 2011-08-02 15:02:21

Modeler
Member
From: United Kingdom
Registered: 2011-07-28
Posts: 70

Re: [Solved] lxappearance can't set GTK2 themes in v0.5.1

Thanks nbtrap; I noticed it had something to do with GTK3 as the Adwaita GTK theme now works in 0.5.1. I'll try your suggested .gtkrc-2.0 for GTK2 themes.

[Edit] This is odd. The ~/.gtkrc-2.0 file doesn't seem to be read at all when I log in. I think I need to do some more digging.

Last edited by Modeler (2011-08-02 15:20:46)


Wirth's law: "Software is getting slower more rapidly than hardware becomes faster"

Offline

#4 2011-08-02 15:36:31

Axell
Member
Registered: 2009-01-11
Posts: 43

Re: [Solved] lxappearance can't set GTK2 themes in v0.5.1

Yep. It's sad, but my ~/.gtkrc-2.0 isn't read too. Did you find any way to fix it?

Offline

#5 2011-08-02 17:50:17

nbtrap
Member
Registered: 2011-02-24
Posts: 110

Re: [Solved] lxappearance can't set GTK2 themes in v0.5.1

Axell, do you mean that your GTK apps aren't displaying the correct theme despite the presence of your ~/.gtkrc-2.0? If so, can you post it here?

Offline

#6 2011-08-02 17:55:42

Axell
Member
Registered: 2009-01-11
Posts: 43

Re: [Solved] lxappearance can't set GTK2 themes in v0.5.1

nbtrap, seems that problem was in GTK-3 smile
lxappearance changes gtk-3 theme, but I had to create symlink ~/.config/gtk-3.0 -> /usr/share/themes/%gtk-3-theme%/gtk-3.0 to make it work.

And it seems there are no other non-xfce gtk2 apps left on my laptop to test it.

Thank you!

Offline

Board footer

Powered by FluxBB