Change sidebar color (on XFCE) [SOLVED]

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
Locked
pedruchini
Posts: 3
Joined: Tue Jan 07, 2020 9:25 pm

Change sidebar color (on XFCE) [SOLVED]

Post by pedruchini »

I installed PCManFM on MX Linux but I can't change the sidebar color, as I did in Lubuntu. I know this is the LXDE forum, but since PCManFM is primarily an LXDE application I decided to post this topic on this forum instead on the MX Linux forum.

In LXDE, I created in my home directory a file named .gtkrc-2.0.mine with this content:

style "pcmanfm-sidebar"
{
ythickness = 3
xthickness = 3

GtkTreeView::horizontal_separator = 15
GtkTextView::cursor_color = "#ffffff"

base[NORMAL] = "#525252"
text[NORMAL] = "#98D2F2"
}

widget "FmMainWin.*.FmPlacesView" style "pcmanfm-sidebar"


But this doesn't work on MX Linux.

Does anybody know how to achieve this?

Thank you in advance.
Last edited by pedruchini on Thu Jan 30, 2020 10:29 pm, edited 1 time in total.
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: Change sidebar color (on XFCE)

Post by drooly »

pedruchini wrote:But this doesn't work on MX Linux.
Where did you get that code from?
Also show us the contents of ~/.gtkrc-2.0
pedruchini
Posts: 3
Joined: Tue Jan 07, 2020 9:25 pm

Re: Change sidebar color (on XFCE)

Post by pedruchini »

Hi,
I'm not a programmer. I can't remember where I got that code. It was a few years ago. Since then, I changed some values and I always use it to customize PCManFM. It works in LXDE, but it doesn't work in XFCE.
I remember that I tested other options, like the code you proposed on this thread:viewtopic.php?t=36177, but as I've just said, it was long time ago.

Here is the contents of my .gtkrc.2.0.mine.

Code: Select all

style "pcmanfm-sidebar"
{
ythickness	= 3
xthickness	= 3

GtkTreeView::horizontal_separator	= 15
	GtkTextView::cursor_color	= "#ffffff"
	
	base[NORMAL]	= "#525252"
	text[NORMAL] = "#98D2F2"
}

widget "FmMainWin.*.FmPlacesView" style "pcmanfm-sidebar"
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: Change sidebar color (on XFCE)

Post by drooly »

Nothing will be applied if your ~/.gtkrc-2.0 does not include the line
include "/home/<yourusername>/.gtkrc-2.0.mine"

But, I sortof missed the point that this is XFCE, not LXDE - yes, XFCE will likely require different tweaks.
Maybe you can find sth here: https://docs.xfce.org/start
pedruchini
Posts: 3
Joined: Tue Jan 07, 2020 9:25 pm

Re: Change sidebar color (on XFCE)

Post by pedruchini »

Hi, drooly

Thanks for your help. I've finally found a solution:
Since I'm using the Numix theme, I edited the file /usr/share/themes/Numix/gtk-2.0/gtkrc by adding the abovementioned code.
Now it works.
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: Change sidebar color (on XFCE)

Post by drooly »

Congratulations!
You could mark your thread SOLVED now.
Locked