Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-05-05 19:06:26

taw_moto
Member
Registered: 2018-02-01
Posts: 21

[SOLVED] Stop taskbar icons turning grey when they're not in focus

Hi,

I updated my Xubuntu 20.04 to 22.04 and it seems that in this last version, my taskbar text turns a bit grey when they are not focused

Here is a gif
https://gifyu.com/image/SnLCz

How can I make it stay "bright" all the time, without turning a bit darker when not in focus?
In the old version, it stayed bright always.

Looks quite ugly the unfocused one (left)
https://imgur.com/a/MmSMaPG

Seems that I have XFCE 4.16, I am using Numix theme.

Thanks

Last edited by taw_moto (2023-05-07 14:01:51)

Offline

#2 2023-05-05 20:07:15

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

Re: [SOLVED] Stop taskbar icons turning grey when they're not in focus

Are these applications unfocused or minimized?

To change the color of the label of a minimzed window:

.tasklist .label-hidden {color: white}

To change the opacity of the icon of a minimized window:

.tasklist image.minimized { opacity: 1.0 }

You can place these tweaks into ~/.config/gtk-3.0/gtk.css - create the file if it doesn't exist, and restart the panel ("xfce4-panel -r").


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 2023-05-05 20:21:22

taw_moto
Member
Registered: 2018-02-01
Posts: 21

Re: [SOLVED] Stop taskbar icons turning grey when they're not in focus

ToZ wrote:

Are these applications unfocused or minimized?

To change the color of the label of a minimzed window:

.tasklist .label-hidden {color: white}

To change the opacity of the icon of a minimized window:

.tasklist image.minimized { opacity: 1.0 }

You can place these tweaks into ~/.config/gtk-3.0/gtk.css - create the file if it doesn't exist, and restart the panel ("xfce4-panel -r").

Those are minimized, sorry for confusion. I guess when you minimize something it also loses focus
Thank you, unfortunately the solution did not work (I added both lines), seems there is still a difference in color between similar items.

the first 2 are "greyed", the last 2 are bright.
https://imgur.com/a/K30yWnf

Is this a new "feature" from XFCE?

Last edited by taw_moto (2023-05-05 20:22:33)

Offline

#4 2023-05-05 21:45:24

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

Re: [SOLVED] Stop taskbar icons turning grey when they're not in focus

taw_moto wrote:

Thank you, unfortunately the solution did not work (I added both lines), seems there is still a difference in color between similar items.


Did you restart the panel (or log out and back in again)?

Can you post back the contents of your ~/.config/gtk-3.0/gtk.css as well as the contents of ~/.xsession-errors on a fresh login?


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 2023-05-06 16:34:49

chardmain
Member
From: South East Asia
Registered: 2020-04-13
Posts: 8

Re: [SOLVED] Stop taskbar icons turning grey when they're not in focus

ToZ wrote:

To change the color of the label of a minimzed window:

.tasklist .label-hidden {color: white}

I checked that label on on tasklist also have opacity 0.75 when it's minimized.

I use this snippet instead and and works perfectly:

.tasklist label.label-hidden { opacity: 1.0; }

Also don't forget to restart the panel or log out and back in.

Last edited by chardmain (2023-05-06 16:35:57)

Offline

#6 2023-05-07 08:47:44

taw_moto
Member
Registered: 2018-02-01
Posts: 21

Re: [SOLVED] Stop taskbar icons turning grey when they're not in focus

chardmain wrote:
ToZ wrote:

To change the color of the label of a minimzed window:

.tasklist .label-hidden {color: white}

I checked that label on on tasklist also have opacity 0.75 when it's minimized.

I use this snippet instead and and works perfectly:

.tasklist label.label-hidden { opacity: 1.0; }

Also don't forget to restart the panel or log out and back in.

Thanks, tried it, did not work sad. So you have only this line in your gtk.css file?

@ToZ
Yes, I restarted the panel, and now I did a complete reboot, here is my xsession-errors file

dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting XAUTHORITY=/home/taw/.Xauthority
/etc/X11/Xsession.d/30x11-common_xresources: line 16: has_option: command not found
/etc/X11/Xsession.d/75dbus_dbus-launch: line 9: has_option: command not found
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
/etc/X11/Xsession.d/90x11-common_ssh-agent: line 9: has_option: command not found
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg
dbus-update-activation-environment: setting XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
dbus-update-activation-environment: setting GTK_IM_MODULE=ibus
dbus-update-activation-environment: setting CLUTTER_BACKEND=x11
dbus-update-activation-environment: setting LANGUAGE=en_US
dbus-update-activation-environment: setting LC_ADDRESS=ro_RO.UTF-8
dbus-update-activation-environment: setting LC_NAME=ro_RO.UTF-8
dbus-update-activation-environment: setting XMODIFIERS=@im=ibus
dbus-update-activation-environment: setting DESKTOP_SESSION=xubuntu
dbus-update-activation-environment: setting LC_MONETARY=ro_RO.UTF-8
dbus-update-activation-environment: setting PWD=/home/taw
dbus-update-activation-environment: setting XDG_SESSION_DESKTOP=xubuntu
dbus-update-activation-environment: setting LOGNAME=taw
dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=gtk2
dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting XAUTHORITY=/home/taw/.Xauthority
dbus-update-activation-environment: setting XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/taw
dbus-update-activation-environment: setting GDM_LANG=en_US
dbus-update-activation-environment: setting HOME=/home/taw
dbus-update-activation-environment: setting IM_CONFIG_PHASE=1
dbus-update-activation-environment: setting LANG=en_US.UTF-8
dbus-update-activation-environment: setting LC_PAPER=ro_RO.UTF-8
dbus-update-activation-environment: setting XDG_CURRENT_DESKTOP=XFCE
dbus-update-activation-environment: setting XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
dbus-update-activation-environment: setting CLUTTER_IM_MODULE=ibus
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting LC_IDENTIFICATION=ro_RO.UTF-8
dbus-update-activation-environment: setting GTK_OVERLAY_SCROLLING=0
dbus-update-activation-environment: setting USER=taw
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting SHLVL=1
dbus-update-activation-environment: setting LC_TELEPHONE=ro_RO.UTF-8
dbus-update-activation-environment: setting QT_IM_MODULE=ibus
dbus-update-activation-environment: setting LC_MEASUREMENT=ro_RO.UTF-8
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000
dbus-update-activation-environment: setting LC_TIME=ro_RO.UTF-8
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/share/xubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop
dbus-update-activation-environment: setting PATH=/home/taw/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/taw/.local/share/JetBrains/Toolbox/scripts
dbus-update-activation-environment: setting GDMSESSION=xubuntu
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting LC_NUMERIC=ro_RO.UTF-8
dbus-update-activation-environment: setting _=/usr/bin/dbus-update-activation-environment
/usr/bin/iceauth:  creating new authority file /run/user/1000/ICEauthority

** (xfce4-power-manager:3237): WARNING **: 11:42:14.603: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name


** (xfce4-power-manager:3237): WARNING **: 11:42:14.603: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.PowerManagement': no such name


(xfce4-power-manager:3237): GLib-GObject-WARNING **: 11:42:14.724: ../../../gobject/gsignal.c:2613: signal 'Changed' is invalid for instance '0x55ecaf1e4090' of type 'GDBusProxy'

(xfce4-power-manager:3237): xfce4-power-manager-WARNING **: 11:42:14.768: could not map keysym 1008ffa8 to keycode


** (xfce4-power-manager:3237): WARNING **: 11:42:14.774: No outputs have backlight property

(xfce4-power-manager:3237): xfce4-power-manager-WARNING **: 11:42:14.790: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/UPower/KbdBacklight”

(wrapper-2.0:3226): Gtk-WARNING **: 11:42:14.881: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkButton)

(wrapper-2.0:3240): Gtk-WARNING **: 11:42:14.910: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height 26

(polkit-gnome-authentication-agent-1:3365): GLib-CRITICAL **: 11:42:15.042: g_variant_new_string: assertion 'string != NULL' failed

(polkit-gnome-authentication-agent-1:3365): polkit-gnome-1-WARNING **: 11:42:15.043: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(process:3378): ayatana-indicator-application-service-WARNING **: 11:42:15.047: Unable to get watcher name 'org.kde.StatusNotifierWatcher'

(wrapper-2.0:3224): Gtk-WARNING **: 11:42:15.054: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)
blueman-applet 11.42.15 WARNING  PluginManager:147 __load_plugin: Not loading PPPSupport because its conflict has higher priority
blueman-applet 11.42.15 WARNING  PluginManager:147 __load_plugin: Not loading DhcpClient because its conflict has higher priority
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
[5270:5270:0507/114230.718696:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.UnknownMethod: Unknown method GetActive or interface org.freedesktop.ScreenSaver.
blueman-applet 11.42.33 WARNING  DiscvManager:119 update_menuitems: warning: Adapter is None
Fontconfig error: Cannot load default config file: No such file: (null)

(wrapper-2.0:8675): Gtk-WARNING **: 11:44:46.700: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkButton)

(wrapper-2.0:8674): Gtk-WARNING **: 11:44:46.707: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)

(wrapper-2.0:8682): Gtk-WARNING **: 11:44:46.710: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height 26

my gtk.css now contains only that line, I tried with your 2 lines also...

$ cat ~/.config/gtk-3.0/gtk.css 
.tasklist label.label-hidden { opacity: 1.0; }

Last edited by taw_moto (2023-05-07 09:59:37)

Offline

#7 2023-05-07 10:22:06

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

Re: [SOLVED] Stop taskbar icons turning grey when they're not in focus

I just tested this on Xubuntu 22.04 with the Numix theme, and @chardmain's tweak works better. Combined with the image opacity tweak, you can get the entry to look the same as unminimized entries. My gtk.css looks like:

.tasklist label.label-hidden, .tasklist image.minimized { opacity: 1.0; }

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

#8 2023-05-07 10:32:55

taw_moto
Member
Registered: 2018-02-01
Posts: 21

Re: [SOLVED] Stop taskbar icons turning grey when they're not in focus

ToZ wrote:

I just tested this on Xubuntu 22.04 with the Numix theme, and @chardmain's tweak works better. Combined with the image opacity tweak, you can get the entry to look the same as unminimized entries. My gtk.css looks like:

.tasklist label.label-hidden, .tasklist image.minimized { opacity: 1.0; }

On the first try it did not work, when i restarted the panel it disappeared completely.
But after a computer restart seems to work great, thanks a lot!

P.S. i don't know how to mark the thread as "solved"

Last edited by taw_moto (2023-05-07 10:35:04)

Offline

#9 2023-05-07 13:31:52

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

Re: [SOLVED] Stop taskbar icons turning grey when they're not in focus

taw_moto wrote:

P.S. i don't know how to mark the thread as "solved"

Edit your first post in this thread and you'll have an opportunity to also edit the Subject line. Prepend "[SOLVED]" to the subject and save.


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

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 600.43 KiB (Peak: 617.27 KiB) ]