Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-11-05 22:16:50

File Manager
Member
Registered: 2019-11-01
Posts: 4

Thunar background colors

Hi,

I'm sure this info can be found somewhere on this forum, but the threads I viewed didn't give me the exact info I wanted. I just want to port my Thunar background colors from Thunar GTK2 to Thunar GTK3.

This is what my gtkrc in TraditionalOk (a MATE theme) looks like:

# My own Thunar background color
style "my-thunar-colours"
{
   base[NORMAL]        = "#F2EEE4"
}
widget_class "*ThunarShortcutsView*"		style "my-thunar-colours"
widget_class "*ThunarTreeView*"			style "my-thunar-colours"
widget_class "*ThunarIconView*"			style "my-thunar-colours"

So how would I achieve the same result in Thunar GTK3 with gtk.css file?

Offline

#2 2019-11-06 00:32:41

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,969

Re: Thunar background colors

Hello and welcome.

Looks like you're trying to affect the thunar window background. Try this in ~/.config/gtk-3.0/gtk.css:

.thunar .view { background-color: #F2EEE4; }

Offline

#3 2019-11-06 00:49:35

Jerry3904
Member
Registered: 2013-11-09
Posts: 744

Re: Thunar background colors

As long as this topic is up, what would one put to only change

1) the main field
2) the pane


MX-19 (based on Debian Stable) with Xfce 4.14.
My little collection: Xfce Tidbits

Offline

#4 2019-11-06 01:03:55

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,969

Re: Thunar background colors

Is this what you mean?

.thunar .sidebar { background-color: red; }
.thunar .standard-view .view { background-color: blue; }

Screenshot-2019-11-05-20-02-22.png

Offline

#5 2019-11-06 02:12:37

File Manager
Member
Registered: 2019-11-01
Posts: 4

Re: Thunar background colors

Thanks!
I'll try tomorrow.

Offline

#6 2019-11-06 10:58:34

Jerry3904
Member
Registered: 2013-11-09
Posts: 744

Re: Thunar background colors

@ToZ: a bit harsh at 6am, but yes. Thanks.


MX-19 (based on Debian Stable) with Xfce 4.14.
My little collection: Xfce Tidbits

Offline

#7 2019-11-09 07:52:06

sushi
Member
Registered: 2019-04-22
Posts: 48

Re: Thunar background colors

Hi,

Sorry but it doesn't work on my system...

Offline

#8 2019-11-09 12:12:38

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,969

Re: Thunar background colors

sushi wrote:

Hi,

Sorry but it doesn't work on my system...

Are you running a Gtk3-version of thunar:

thunar -V

Did you stop the thunar daemon (and or log out and back in again to test)?

Can you post back the contents of your ~/.config/gtk-3.0/gtk.css file?

Offline

#9 2019-11-09 13:51:01

sushi
Member
Registered: 2019-04-22
Posts: 48

Re: Thunar background colors

Yes I do on Archlinux up to date :

thunar -V
Thunar 1.8.9 (Xfce 4.14)

~/.config/gtk-3.0/gtk.css :

* {
-XfcePanelWindow-popup-delay: 700;
-XfcePanelWindow-popdown-delay: 100;
-XfcePanelWindow-autohide-size: 0;
}

XfdesktopIconView.view {
	-XfdesktopIconView-label-alpha:0;
	-XfdesktopIconView-selected-label-alpha:0;
	-XfdesktopIconView-ellipsize-icon-labels:0;
	-XfdesktopIconView-tooltip-size:128;
	-XfdesktopIconView-cell-spacing:-5;
	-XfdesktopIconView-cell-padding:25;
	-XfdesktopIconView-cell-text-width-proportion:3.3;
}

XfdesktopIconView.view {
  border-radius: 2px;
  background: transparent;
  color: #444755;
  text-shadow: none;
}

XfdesktopIconView.label:active, XfdesktopIconView.label:checked {
  background-color: transparent;
  color: #8BAEE8;
  text-shadow: none;
}

.thunar .sidebar { background-color: #5d6571; }
.thunar .standard-view .view { background-color: blue; }

Thank you.

Offline

#10 2019-11-09 13:57:52

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,969

Re: Thunar background colors

Hmm. That gtk.css file works on my arch box.

Try killing the thunar daemon:

thunar -q

...then starting thunar up again:

thunar

Offline

#11 2019-11-09 15:13:25

sushi
Member
Registered: 2019-04-22
Posts: 48

Re: Thunar background colors

Suddenly it's working now without killing thunar... Strange because even after some reboot it didn't !

Thanks ToZ !

Edit : But I needed to change :

.thunar .sidebar .view { background-color: grey; }

Instead of :

.thunar .sidebar { background-color: grey; }

Last edited by sushi (2019-11-09 15:23:44)

Offline

#12 2019-11-09 22:16:51

ctac
Member
Registered: 2017-05-08
Posts: 44

Re: Thunar background colors

Hi
I don't get the same as yours, not red part.

.thunar .sidebar { background-color: red; }
.thunar .standard-view .view { background-color: blue; }

Capture-d-cran-2019-11-09-22-49-38.png

Something is missing ?

Offline

#13 2019-11-09 22:39:58

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,969

Re: Thunar background colors

As @sushi found, try:

.thunar .sidebar .view { background-color: red; }
.thunar .standard-view .view { background-color: blue; }

I must have mistyped something.

Offline

#14 2019-11-10 00:15:23

ctac
Member
Registered: 2017-05-08
Posts: 44

Re: Thunar background colors

I try that but no more red color in debian and OpenBSD.
I try tho remove local LC_ALL=fr_FR.UTF-8 too with no avail.

Last edited by ctac (2019-11-10 00:18:03)

Offline

#15 2019-11-10 00:37:12

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,969

Re: Thunar background colors

ctac wrote:

I try that but no more red color in debian and OpenBSD.
I try tho remove local LC_ALL=fr_FR.UTF-8 too with no avail.

Which debian version?

Which version of Thunar?

Which appearance theme are you using?

Offline

#16 2019-11-10 11:37:47

ctac
Member
Registered: 2017-05-08
Posts: 44

Re: Thunar background colors

Hum! sorry, it's ok.
I try with -view with no avail.

Offline

#17 2019-11-10 18:52:42

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,969

Re: Thunar background colors

Which debian version?

Which version of Thunar?

Which appearance theme are you using?

Can you post your ~/.config/gtk-3.0/gtk.css file?

Offline

Board footer

Powered by FluxBB