Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-05-21 00:05:54

xfdevin98
Member
Registered: 2017-05-20
Posts: 5

[Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

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.

Prjo2Ut.png

If this info may help:
- icon theme: Paper
- GTK+ theme: Adapta

Offline

#2 2017-05-21 00:54:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

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

#3 2017-05-21 11:15:04

matthieumota
Member
Registered: 2017-05-21
Posts: 2

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

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

#4 2017-05-21 13:43:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

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):
1e5d1af82cf4f254fce84790f18e9e173.png

With "#pulseaudio-button { padding: 3px; }" in my ~/.config/gtk-3.0/gtk.css file, I get:
2268364775cdb7c9d125718682db4dacc.png

And to fix all of them, using the following:

#pulseaudio-button { padding: 3px; }
#xfce4-clipman-plugin { padding: 4px; }
#xfce4-power-manager-plugin { padding: 3px; }

...I get:
5ee594778a37f5b8b34f3a121c7286dbb.png

@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

#5 2017-05-21 13:59:48

matthieumota
Member
Registered: 2017-05-21
Posts: 2

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

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

#6 2017-05-21 14:17:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

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

#7 2017-05-21 19:40:42

xfdevin98
Member
Registered: 2017-05-20
Posts: 5

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

matthieumota wrote:

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. smile

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! big_smile

Last edited by xfdevin98 (2017-05-21 19:59:13)

Offline

#8 2018-09-14 06:15:15

Podesta
Member
Registered: 2018-09-14
Posts: 2

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

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: 4hXArCB.png


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: Zc7lZXO.png


xubuntu 18.04
xfce4-panel version 4.12.2
xfce-pulseaudio-plugin 0.4.1
xfce4-dockbarx-applet

Offline

#9 2018-09-14 11:23:53

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

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

#10 2018-09-14 11:38:26

Podesta
Member
Registered: 2018-09-14
Posts: 2

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

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

#11 2019-04-20 13:43:48

Carlos Kosa
Member
Registered: 2019-04-20
Posts: 1

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

Podesta wrote:

...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

#12 2022-01-23 12:47:32

Laurentius
Member
Registered: 2016-09-04
Posts: 55

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

ToZ wrote:

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

#13 2022-01-23 12:56:08

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

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

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! tongue

Offline

#14 2022-01-23 14:25:12

Laurentius
Member
Registered: 2016-09-04
Posts: 55

Re: [Arch Linux] xfce4-pulseaudio-plugin's icon is too large! Help?

KBar wrote:

Increase specificity, i.e.:

#pulseaudio-button > image {
  -gtk-icon-transform: scale(0.6);
}

Excellent!
Thank you Kbar

Offline

Board footer

Powered by FluxBB