Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-09-11 21:15:25

Navegante
Member
Registered: 2019-09-11
Posts: 4

descktop icons background

HI!
I am a newbie on this so have patience please big_smile

it is possible to set a color background for desktop icons and its text? So this way icons colors and icons text won't get confused with the desktop wallpaper color and shapes.

Thanks!!

Last edited by Navegante (2019-09-11 21:16:50)

Offline

#2 2019-09-11 22:38:03

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: descktop icons background

Yes it is. Can you tell us which version of Xfce and more importantly, xfdesktop you are using:

xfdesktop -V

If you are using a version built on GTK2 (4.12 or earlier), then have a read through https://docs.xfce.org/xfce/xfdesktop/advanced. For versions built on GTK3 (4.13 and 4.14), have a read through this thread.

Once you've digested this information, feel free to post back any follow-up questions you may have.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-09-12 00:35:16

Navegante
Member
Registered: 2019-09-11
Posts: 4

Re: descktop icons background

Hi!!

This is my Xfce version:
(In Spanish)

:~$ xfdesktop -V
Esto es xfdesktop versión 4.13.3, ejecutándose en Xfce 4.12.
Compilado con GTK+ 3.24.7, Enlazado con GTK+ 3.24.8.
Opciones de compilación:
Menú del escritorio: activado
Iconos de escritorio: activado
Iconos de archivos del escritorio: activado

Ok. I gonna take a look at that links and tell you my results. Thank you very much!!

Last edited by Navegante (2019-09-12 00:45:22)

Offline

#4 2019-09-12 01:06:25

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: descktop icons background

Yes, see if the information in the second link helps.

Note: I'll put this here in case it helps...

Try putting the following snippet into ~/.config/gtk-3.0/gtk.css (create the file if it doesn't exist):

/* default label state */
  XfdesktopIconView.view .label {
    background: blue;
    text-shadow: 1px 1px 2px black; }

/* active (selected) label state */
  XfdesktopIconView.view .label:active {
    background: red;
    text-shadow: 1px 3px 3px blue; }

...and change "backgound: blue" and "background: red" to match the colours you want to use. You can also use RGB designations in the form of #RRGGBB (e.g. #ff0000 = red).

You will need to restart xfdesktop for this to take effect:

pkill xfdesktop

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2019-09-12 15:10:40

Navegante
Member
Registered: 2019-09-11
Posts: 4

Re: descktop icons background

That is what I was searching for.
Here I user rgba designator to add a little transparency on the background.

 /* default label state */
  XfdesktopIconView.view .label {
    background: rgba(0, 0, 0, 0.6);
    text-shadow: 1px 1px 2px black; }

/* active (selected) label state */
  XfdesktopIconView.view .label:active {
    background: rgba(0, 50, 90, 0.8);
    text-shadow: 1px 3px 3px blue; }  

It would be nice to access to this settings through a graphic interface configurator.

Offline

#6 2020-03-11 18:02:02

Time7man
Member
Registered: 2020-02-29
Posts: 4

Re: descktop icons background

Can I use @theme_fg_color or just stick to rgb?

/* default label state */
  XfdesktopIconView.view .label {
    color: rgb(44,44,44);
    background: rgb(212,212,212);
    text-shadow: 1px 1px 2px black; }

/* active (selected) label state */
  XfdesktopIconView.view .label:active {
   color: @theme_fg_color;
    background-color: @theme_bg_color;
    text-shadow: 1px 3px 3px blue; }

Last edited by Time7man (2020-03-11 18:02:34)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 536.57 KiB (Peak: 537.41 KiB) ]