You are not logged in.
Okay, so I recently updated to the latest version of the PulseAudio plugin for Xfce4 that was pushed to Arch's stable repos, and this is now how the icon appears on my panel. Current panel size is 32; the icon seems to go back to its size that was present in the previous version when I drop the panel's length to 26, but this is far too small for me.
If this info may help:
- icon theme: Paper
- GTK+ theme: Adapta
Offline
Hello and welcome.
Try something like the following in ~/.config/gtk-3.0/gtk.css:
#pulseaudio-button { padding: 3px; }
...adjust the 3px to suit.
Restart the panel to see the effect:
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
Hello,
I've the same problem since update xfce4-pulseaudio-plugin in 2.5.1 on Arch Linux stable. CSS doesn't change anything because it's the button size who is not correct and we can't change that by css but only in library code.
I started to look where the problem came from. I've checked the git repo and i think the problem is by this commit
Especially how is calculate the icon size. If I have the time, I would try to modify the package and recompile it. Else, I think contributors will correct the bug.
Last edited by matthieumota (2017-05-21 11:18:36)
Offline
On my Arch system, with Adapta as the GTK theme and Paper icons, panel size set to 34, I get the following (clipman, power-manager, pulseaudio, actions plugins):
With "#pulseaudio-button { padding: 3px; }" in my ~/.config/gtk-3.0/gtk.css file, I get:
And to fix all of them, using the following:
#pulseaudio-button { padding: 3px; }
#xfce4-clipman-plugin { padding: 4px; }
#xfce4-power-manager-plugin { padding: 3px; }
@matthieumota, which GTK theme and icon set are you using?
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
I also use Adapta and Paper.
My panel size is to 30. And before the update (2.4.1), icon was in good size.
If i reduce panel size to 24, it's okay. CSS doesn't change anything for me. I've purposed a patch for that.
Offline
Your patch has been accepted. Thanks for contributing.
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
I also use Adapta and Paper.
My panel size is to 30. And before the update (2.4.1), icon was in good size.
If i reduce panel size to 24, it's okay. CSS doesn't change anything for me. I've purposed a patch for that.
Thank you so much for submitting a patch.
ToZ, I appreciate you telling us a way to change the size of the symbolic icons. Fixed my issue with the Clipman plugin, too! The issue with the PA plugin still stands, sadly, but I can live with it until a bugfix release gets pushed out. If not, I'll submit a bug report to find out if the package maintainer can implement the upstream patch.
Xfce is the best DE ever!
Last edited by xfdevin98 (2017-05-21 19:59:13)
Offline
Hey guys, sorry to necro an old post, but I'm having the same issue. If preferable I can start a new thread.
The icon seems to stay the 'correct' size as long as the panel is 35 or smaller, but anything over 35 and it becomes the giant icon.
Here is how it looks, a bit out of touch with the rest:
The proposed tweak of adding padding doesn't work because it simply clips the icon out, without actually reducing the size. With a padding of 13px just to demonstrate what I mean:
xubuntu 18.04
xfce4-panel version 4.12.2
xfce-pulseaudio-plugin 0.4.1
xfce4-dockbarx-applet
Offline
Try this setting instead:
#pulseaudio-button * {
-gtk-icon-transform: scale(.7);
}
...and change the ".7" to a value that suits.
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
Works perfectly! Thanks a bunch ToZ!
Edit: Also resized the whiskermenu-button with that, since it also looked a bit too big. If you don't mind me asking, is there any place to see the names/attributes from each icon if I wanted to change them?
Last edited by Podesta (2018-09-14 11:52:49)
Offline
...is there any place to see the names/attributes from each icon if I wanted to change them?
This is what I did:
1) Install libgtk-3-dev: sudo apt install libgtk-3-dev
2) Enable gtk debugging: gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true
3) Reboot to apply
4) Click on the status bar to show one of its menu. While the menu is open, press Ctrl+shift+I or Ctrl+Shift+D to show the inspector.
5) Click the “Objects” tab and choose “CSS Nodes” to show all the available properties that the control has. For example click on “PanelApplet”.
6) Click on the CSS tab and type some CSS code to see the changes on the fly!
7)#pulseaudio-button * { -gtk-icon-transform: scale(.7); }
8) Save the CSS changes in ~/.config/gtk-3.0/gtk.css to make them permanent
9) enjoy!
PS: Sorry for necromancy.
Last edited by Carlos Kosa (2019-04-20 13:49:38)
Offline
Try this setting instead:
#pulseaudio-button * { -gtk-icon-transform: scale(.7); }
...and change the ".7" to a value that suits.
This helped me for the pulseaudio-plugin.
And also for the power manager plugin
#xfce4-power-manager-plugin * {
-gtk-icon-transform: scale(.6);
}
The downside is that the icons on the pulseaudio-plugin pop-up window get scaled to, and thus they look too small. ¿is there a way to avoid this unwanted secondary effect?
The power-manager pop-up window icons don't have this problem.
System info:
Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel
wm: xfwm 4.16.1 vt: 7 dm: LightDM 1.26.0
Distro: MX-21_x64 Wildflower October 20 2021
base: Debian GNU/Linux 11 (bullseye)
Offline
Increase specificity, i.e.:
#pulseaudio-button > image {
-gtk-icon-transform: scale(0.6);
}
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!
Offline
Increase specificity, i.e.:
#pulseaudio-button > image { -gtk-icon-transform: scale(0.6); }
Excellent!
Thank you Kbar
Offline
[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 598.77 KiB (Peak: 615.61 KiB) ]