2

I want to change color of the left sidebar

ScreenShot

Can anyone help me out?

1

If you're using Thunar, you can change the side-pane's color by editing a file called thunar.rc. Its location depends on where your theme is. I like to have my themes in ~/.themes and so my thunar.rc has this filepath: /home/dkb/.themes/MyGreybird/gtk-2.0/apps/thunar.rc.

In my thunar.rc, right at the top, I have:

style "sidepane"
{
    GtkTreeView::vertical-separator = 4

    base[NORMAL]        = @link_color
    base[INSENSITIVE]   = mix (0.4, shade (1.35,@selected_bg_color), shade (0.9,@base_color))

    text[NORMAL]        = mix (0.7, @text_color, @base_color)
    text[ACTIVE]        = mix (0.7, @text_color, @base_color)
    text[SELECTED]      = mix (0.7, @text_color, @base_color)

When I have

base[NORMAL]        = @link_color

Thunar's side-pane looks like this:

Thunar side-pane blue

When I have

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

Thunar's side-pane looks like this:

Thunar's side pane grey

@link_color, @selected_bg_color, and @base_color are defined in your theme's gtkrc. In my case, the filepath is this: /home/dkb/.themes/MyGreybird/gtk-2.0/gtkrc.

You can define your own color in gtkrc by just adding to the list of defined colors:

For example, you may have:

gtk-color-scheme    = "bg_color:#777777\nselected_bg_color:#398ee7\nbase_color:#666666" # Background, base.
gtk-color-scheme    = "fg_color:#3C3C3C\nselected_fg_color:#ffffff\ntext_color:#212121" # Foreground, text.
gtk-color-scheme    = "tooltip_bg_color:#000000\ntooltip_fg_color:#E1E1E1" # Tooltips.
gtk-color-scheme    = "link_color:#2d71b8" # Hyperlinks
gtk-color-scheme    = "panel_bg:#686868" # Panel bg color
gtk-color-scheme    = "fm_color:#F7F7F7" # Color used in Nautilus and Thunar.
gtk-color-scheme    = "bg_color_dark:#686868\ntext_color_dark:#FFF"

Then just add something like:

gtk-color-scheme    = "my_thunar_sidepane_color:#2c2c2c"

if you want to match the color of the main pane, for example. Save gtkrc and modify thunar.rc to use your defined color and reload your theme. When you next open Thunar, it should reflect the change you made.

  • i cannot find directory .themes on my /home/username where is it ? – Roby Firnando Yusuf Nov 29 '18 at 6:42
  • In that case, look in /usr/share/themes. You'll need sudo to make changes. – DK Bose Nov 29 '18 at 6:53

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.