Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-05-11 21:17:14

Wat Tyler
Member
Registered: 2020-05-11
Posts: 4

[SOLVED] Changing color of active window as displayed on the panel

This is how my panel looks now

QQ8Z8uT
https://imgur.com/a/QQ8Z8uT

with focus on Firefox which is hardly distinguishable from the rest (just a bit more grey).
I would love to change that "highlight" to be of  the color of my liking,
Cheers

Last edited by Wat Tyler (2020-05-11 23:17:05)

Offline

#2 2020-05-11 21:29:04

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 6,574

Re: [SOLVED] Changing color of active window as displayed on the panel

Hello and welcome.

You need to tell us more about your setup - the tweaks may be version or theme-dependent:

  • Xfce version ("xfce4-about -V")

  • xfce4-panel version ("xfce4-panel -V")

  • distro being used

  • Appearance (GTK) theme being used

Offline

#3 2020-05-11 21:46:10

Wat Tyler
Member
Registered: 2020-05-11
Posts: 4

Re: [SOLVED] Changing color of active window as displayed on the panel

Thank you for your quick answer.

$ xfce4-about -V
xfce4-about 4.14.1 (Xfce 4.14)

Copyright (c) 2008-2019
	The Xfce development team. All rights reserved.
$ xfce4-panel -V
xfce4-panel 4.14.4 (Xfce 4.14)

$ uname -a
Linux archlinux 5.6.11-arch1-1 #1 SMP PREEMPT Wed, 06 May 2020 17:32:37 +0000 x86_64 GNU/Linux

Theme being used is called Synthetic

Offline

#4 2020-05-11 22:27:41

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 6,574

Re: [SOLVED] Changing color of active window as displayed on the panel

The panel is GTK3 then. The only synthetic theme I can find is an xfwm4 theme. Do you have a link to the theme? And/Or:

xfconf-query -c xsettings -p /Net/ThemeName

Based on the image, can you try something like this in ~/.config/gtk-3.0/gtk.css?

.tasklist button:checked { background-image: none; background-color: red ; border-color: red; }

...and restart the panel:

xfce4-panel -r

...see if the background colour changes to red.

Offline

#5 2020-05-11 23:14:46

Wat Tyler
Member
Registered: 2020-05-11
Posts: 4

Re: [SOLVED] Changing color of active window as displayed on the panel

You're a magician.
This one worked for me perfect:

$ echo ".tasklist button:checked { background-image: none; background-color: red ; border-color: red; }" > ~/.config/gtk-3.0/gtk.css
$ xfce4-panel -r

  LwgcGQG.png

Thank you very much for your help.

Last edited by Wat Tyler (2020-05-11 23:16:08)

Offline

#6 2020-05-12 00:52:17

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 6,574

Re: [SOLVED] Changing color of active window as displayed on the panel

Red was an example. Are you going to stick with the red? It can be tweaked to be any colour:
- as a color name
- as "rgb(xxx,yyy,zzz)" where xxx is a red value between 0 and 255, yyy is a green value and zzz is a blue value
- as "rgba(xxx,yyy,zzz,a.a) where a.a is a float between 0.0 (transparent) and 1.0 (opaque)
... and more.

Offline

#7 2020-05-12 06:28:13

Wat Tyler
Member
Registered: 2020-05-11
Posts: 4

Re: [SOLVED] Changing color of active window as displayed on the panel

No, I'm not gonna stick with red and I've figured out I can use in place of color name any number in base 16 format between #000000 and #ffffff.
There are plenty tools and web pages where one can pick suitable color and matching number.

Once again big  thank you for your solution.

Offline

Board footer

Powered by FluxBB