Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-05-17 13:02:40

Imerion
Member
Registered: 2015-04-04
Posts: 18

Thunar colors in GTK theme

Hi everyone!

I really love the beautiful Greybird theme, but I'm currently restyling my computer with a bit of a lighter "summer" look, so I decided to use the Radiant-MATE theme(https://github.com/flexiondotorg/ubuntu-mate-themes/tree/master/usr/share/themes/Radiant-MATE) instead.

Generally it works great with XFCE. But there is one thing I'd like to change: The Side Pane in Thunar have this nicely tinted background in Greybird, matching the system color theme. Is it possible to change Radiant-MATE to have that effect as well? I tried looking through "gtkrc", but there are so many colors listed I'm not sure what to change. smile

Also, if anyone knows which color is the background for menu bars (The File, Edit, View, etc) I'd love to change that too. smile

Offline

#2 2017-05-17 18:27:24

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 3,865

Re: Thunar colors in GTK theme

The file you want to look at is gtk-2.0/apps/thunar.rc, specifically the "sidepane" style. The "base[NORMAL]" parameter is what changes the sidepane colour. Greybird currently uses:

base[NORMAL]        = mix (0.1, shade (1.35,@selected_bg_color), shade (0.9,@base_color))

...to create the effect


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2017-05-24 15:51:27

Imerion
Member
Registered: 2015-04-04
Posts: 18

Re: Thunar colors in GTK theme

Thanks! But adding gtk-2.0/apps/thunar.rc as it is in Greybird to my new theme doesn't seem to work. Is it because I need to change base_color to something else in another file?

Offline

#4 2017-05-24 17:02:12

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 3,865

Re: Thunar colors in GTK theme

Without seeing the contents of your theme files it would be hard to say, but you need to make sure that it's referenced properly, Try this. In ~/.gtkrc-2.0, add the following content:

style "my-thunar-colours"
{
   base[NORMAL]        = "#ff0000"
}
widget_class "*ThunarShortcutsView*"		style "my-thunar-colours"
widget_class "*ThunarTreeView*"			style "my-thunar-colours"

...then change the appearance theme away and back again.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#5 2017-05-25 09:57:52

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 543
Website

Re: Thunar colors in GTK theme


$ aptitude why gnome   
Unable to find a reason to install gnome.

regards, ssf

Offline

#6 2017-05-30 13:36:25

Imerion
Member
Registered: 2015-04-04
Posts: 18

Re: Thunar colors in GTK theme

ToZ wrote:

Without seeing the contents of your theme files it would be hard to say, but you need to make sure that it's referenced properly, Try this. In ~/.gtkrc-2.0, add the following content:

style "my-thunar-colours"
{
   base[NORMAL]        = "#ff0000"
}
widget_class "*ThunarShortcutsView*"		style "my-thunar-colours"
widget_class "*ThunarTreeView*"			style "my-thunar-colours"

...then change the appearance theme away and back again.

That worked perfect! Thanks! big_smile

Using an image was also a smart suggestion sixsixfive. Will try that if I need some other time!

Offline

Board footer

Powered by FluxBB