Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-03-11 20:59:09

-iak-
Member
Registered: 2017-10-30
Posts: 99

[SOLVED] Some panel icons ignoring both the theme and settings

Hello everybody. The battery, the pulse-audio and the notification plugin icons on my panel are ignoring both the theme and the ~/.config/gtk-3.0/gtk.css file.

Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: SLiM 1.3.6 Distro: Debian GNU/Linux 11 (bullseye) 
           base: Debian GNU/Linux 11 (bullseye)
rawyak@zenbook:~
$ cat .config/gtk-3.0/gtk.css 
/*set custom gtk3/css code below */

#xfce4-power-manager-plugin image {
	-gtk-icon-transform: scale(0.70);
}

#xfce4-notification-plugin image {
        -gtk-icon-transform: scale(0.70);
}

#pulseaudio-button {
   -gtk-icon-transform: scale(0.70);
}

panel screenshot

What can I try to do?

Thank you for your time.

Last edited by -iak- (2022-03-13 10:18:08)

Offline

#2 2022-03-11 23:59:48

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

Re: [SOLVED] Some panel icons ignoring both the theme and settings

The code should work.

Try quitting the panel:

xfce4-panel -q

...and then restart it in debug mode:

PANEL_DEBUG=1 xfce4-panel

...and post back the output.


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 2022-03-12 09:55:47

-iak-
Member
Registered: 2017-10-30
Posts: 99

Re: [SOLVED] Some panel icons ignoring both the theme and settings

ToZ wrote:

The code should work.

Try quitting the panel:

xfce4-panel -q

...and then restart it in debug mode:

PANEL_DEBUG=1 xfce4-panel

...and post back the output.

rawyak@zenbook:~
$ PANEL_DEBUG=1 xfce4-panel
xfce4-panel(main): version 4.16.3 on gtk+ 3.24.24 (3.24.24), glib 2.66.8 (2.66.8)
xfce4-panel(module-factory): reading /usr/share/xfce4/panel/plugins
xfce4-panel(application): found window manager after 1 tries
xfce4-panel(base-window): 0x563691bca280: rgba visual=0x563691b484a0, compositing=true
xfce4-panel(base-window): 0x563691bca280: rgba visual=0x563691b484a0, compositing=true
xfce4-panel(display-layout): 0x563691bca280: display=:0.0{comp=true}, screen-0[0x563691b28020]=[1920,1080] (eDP-1=[0,0;1920,1080])
xfce4-panel(positioning): 0x563691bca280: screen=0x563691b28020, monitors=1, output-name=Automatic, span-monitors=false, base=968,1171
xfce4-panel(positioning): 0x563691bca280: working-area: screen=0x563691b28020, x=0, y=0, w=1920, h=1080
xfce4-panel(struts): 0x563691bca280: bottom=41, start_x=0, end_x=1919
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/4
xfce4-panel(module): new item (type=external-wrapper, name=whiskermenu, id=4)
xfce4-panel(external): whiskermenu-4: child spawned; pid=7177, argc=7
xfce4-panel(module): new item (type=object-type, name=separator, id=2)
xfce4-panel(module): new item (type=object-type, name=launcher, id=8)
xfce4-panel(module): new item (type=object-type, name=launcher, id=1)
xfce4-panel(module): new item (type=object-type, name=directorymenu, id=14)
xfce4-panel(module): new item (type=object-type, name=launcher, id=11)
xfce4-panel(module): new item (type=object-type, name=launcher, id=10)
xfce4-panel(module): new item (type=object-type, name=separator, id=9)
xfce4-panel(module): new item (type=object-type, name=launcher, id=13)
xfce4-panel(module): new item (type=object-type, name=tasklist, id=16)
xfce4-panel(module): new item (type=object-type, name=separator, id=5)
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/12
xfce4-panel(module): new item (type=external-wrapper, name=weather, id=12)
xfce4-panel(external): weather-12: child spawned; pid=7180, argc=7
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/3
xfce4-panel(module): new item (type=external-wrapper, name=pulseaudio, id=3)
xfce4-panel(external): pulseaudio-3: child spawned; pid=7181, argc=7
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/15
xfce4-panel(module): new item (type=external-wrapper, name=notification-plugin, id=15)
xfce4-panel(external): notification-plugin-15: child spawned; pid=7182, argc=7
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/6
xfce4-panel(module): new item (type=external-wrapper, name=systray, id=6)
xfce4-panel(external): systray-6: child spawned; pid=7183, argc=7
xfce4-panel(module): new item (type=object-type, name=clock, id=7)
xfce4-panel(module): new item (type=object-type, name=separator, id=19)
xfce4-panel(module): new item (type=object-type, name=launcher, id=22)
xfce4-panel(external): weather-12: child is embedded; 8 properties in queue
xfce4-panel(external): whiskermenu-4: child is embedded; 8 properties in queue
xfce4-panel(external): pulseaudio-3: child is embedded; 8 properties in queue
xfce4-panel(external): notification-plugin-15: child is embedded; 8 properties in queue

(wrapper-2.0:7182): GLib-GIO-CRITICAL **: 10:52:28.504: g_file_new_for_path: assertion 'path != NULL' failed

(wrapper-2.0:7182): GLib-GIO-CRITICAL **: 10:52:28.504: g_file_monitor_file: assertion 'G_IS_FILE (file)' failed

(wrapper-2.0:7182): GLib-GObject-WARNING **: 10:52:28.504: invalid (NULL) pointer instance

(wrapper-2.0:7182): GLib-GObject-CRITICAL **: 10:52:28.504: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(wrapper-2.0:7182): Gtk-WARNING **: 10:52:28.504: Attempting to add a widget with type GtkToggleButton to a container of type XfcePanelPlugin, but the widget is already inside a container of type XfcePanelPlugin, please remove the widget from its existing container first.
xfce4-panel(external): systray-6: child is embedded; 8 properties in queue
xfce4-panel(systray): rgba visual is 0x559b3c8c40a0
xfce4-panel(systray): registered manager on screen 0

(wrapper-2.0:7181): Gtk-WARNING **: 10:52:28.573: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner PulseaudioButton)

(wrapper-2.0:7182): Gtk-WARNING **: 10:52:28.574: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)

(wrapper-2.0:7180): Gtk-WARNING **: 10:52:28.574: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)
weather-Message: 10:52:29.164: Recupero di https://api.met.no/weatherapi/locationforecast/2.0/classic?lat=52.532100&lon=13.401200&altitude=47

(wrapper-2.0:7177): Gtk-WARNING **: 10:52:29.432: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)

Offline

#4 2022-03-12 11:45:46

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

Re: [SOLVED] Some panel icons ignoring both the theme and settings

What does the following return:

gio info ~/.config/gtk-3.0/gtk.css

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 2022-03-12 14:29:40

-iak-
Member
Registered: 2017-10-30
Posts: 99

Re: [SOLVED] Some panel icons ignoring both the theme and settings

ToZ wrote:

What does the following return:

gio info ~/.config/gtk-3.0/gtk.css
rawyak@zenbook:~
$ gio info ~/.config/gtk-3.0/gtk.css
nome visibile: gtk.css
nome modificabile: gtk.css
nome: gtk.css
tipo: regular
dimensione:  251
uri: file:///home/rawyak/.config/gtk-3.0/gtk.css
percorso locale: /home/rawyak/.config/gtk-3.0/gtk.css
mount unix: /dev/nvme0n1p7 /home ext4 rw,noatime
attributi:
  standard::type: 1
  standard::name: gtk.css
  standard::display-name: gtk.css
  standard::edit-name: gtk.css
  standard::copy-name: gtk.css
  standard::icon: text-css, text-x-generic, text-css-symbolic, text-x-generic-symbolic
  standard::content-type: text/css
  standard::fast-content-type: text/css
  standard::size: 251
  standard::allocated-size: 4096
  standard::symbolic-icon: text-css-symbolic, text-x-generic-symbolic, text-css, text-x-generic
  etag::value: 1646648950:784135
  id::file: l66311:138342
  id::filesystem: l66311
  access::can-read: TRUE
  access::can-write: TRUE
  access::can-execute: FALSE
  access::can-delete: TRUE
  access::can-trash: TRUE
  access::can-rename: TRUE
  time::modified: 1646648950
  time::modified-usec: 784135
  time::access: 1645656157
  time::access-usec: 861363
  time::changed: 1646648950
  time::changed-usec: 784135
  time::created: 1645656157
  time::created-usec: 861363
  unix::device: 66311
  unix::inode: 138342
  unix::mode: 33188
  unix::nlink: 1
  unix::uid: 1000
  unix::gid: 1000
  unix::rdev: 0
  unix::block-size: 4096
  unix::blocks: 8
  owner::user: rawyak
  owner::user-real: 
  owner::group: rawyak

Offline

#6 2022-03-12 14:54:58

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

Re: [SOLVED] Some panel icons ignoring both the theme and settings

Try this as your gtk.css file contents:

/*set custom gtk3/css code below */

#xfce4-power-manager-plugin image {
	-gtk-icon-transform: scale(0.50);
        color: #004589;
}

#xfce4-notification-plugin image {
        -gtk-icon-transform: scale(0.50);
        color: #004589;
}

#pulseaudio-button {
        -gtk-icon-transform: scale(0.50);
        color: #004589;
}

Restart the panel for it to take effect.


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

#7 2022-03-12 15:10:51

-iak-
Member
Registered: 2017-10-30
Posts: 99

Re: [SOLVED] Some panel icons ignoring both the theme and settings

ToZ wrote:

Try this as your gtk.css file contents:

/*set custom gtk3/css code below */

#xfce4-power-manager-plugin image {
	-gtk-icon-transform: scale(0.50);
        color: #004589;
}

#xfce4-notification-plugin image {
        -gtk-icon-transform: scale(0.50);
        color: #004589;
}

#pulseaudio-button {
        -gtk-icon-transform: scale(0.50);
        color: #004589;
}

Restart the panel for it to take effect.

This is the result:

Panel screenshot

No way to set the pulseaudio icon's size correctly

Offline

#8 2022-03-12 15:28:54

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: [SOLVED] Some panel icons ignoring both the theme and settings

Try with #pulseaudio-button image selector.


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#9 2022-03-12 17:56:53

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

Re: [SOLVED] Some panel icons ignoring both the theme and settings

KBar wrote:

Try with #pulseaudio-button image selector.

oops. Thanks for the catch.

@-iak-, the power-manager icon, is that the tray icon (as opposed to the power-manager-plugin)? The only way to change the tray icon is to manually change the icon that is being used. If you add the power-manager-plugin to the panel, then you can change it using the #xfce4-power-manager-plugin selector.

Last edited by ToZ (2022-03-12 17:58:42)


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

#10 2022-03-13 10:18:34

-iak-
Member
Registered: 2017-10-30
Posts: 99

Re: [SOLVED] Some panel icons ignoring both the theme and settings

Now everything is perfect, thank you guys!

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 610.27 KiB (Peak: 627.55 KiB) ]