Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-02-11 18:35:03

Hacksaurus_Babu
Member
Registered: 2017-02-11
Posts: 10

How to adjust icon size on panel? [SOLVED]

Hey I figured out a way to change my icon size on the panel with the help of ToZ! Which is editing my gtk.css
But I can't seem to adjust it so it will be the same size of the audio one... It always seems to be rounding and makes it really big...

My gtk.css

pulseaudio-button { padding: 2px 2px; }
#xfce4-power-manager-plugin { padding: 2px 2px; }

I want the battery icon to be the same size of the audio one... using cm as a measurement sometimes rounds really weirdly.
hn1IB0CY.png
Thanks for any help!

Last edited by Hacksaurus_Babu (2017-02-13 03:19:49)


Glory to Arstotzka!

Offline

#2 2017-02-11 18:45:55

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,372

Re: How to adjust icon size on panel? [SOLVED]

They look the same size to me. Where are you seeing that they are not?


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2017-02-11 18:49:26

Hacksaurus_Babu
Member
Registered: 2017-02-11
Posts: 10

Re: How to adjust icon size on panel? [SOLVED]

Well I just want it to be a little bit bigger so that the top of the battery icon matches to the top of the audio and also the bottom of the battery icon matches with the bottom of the audio. Its just me being picky! XD


Glory to Arstotzka!

Offline

#4 2017-02-11 19:00:54

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,372

Re: How to adjust icon size on panel? [SOLVED]

You might not be able to get it exact without editing the icon files. You said you tried cm measurement units. Have you tried the others to see if they are more precise? See: https://www.tutorialspoint.com/css/css_ … _units.htm.

Also, to properly identify the pulseaudio widget in the css file, you need to prefix it with a '#':

#pulseaudio-button { padding: 2px 2px; }
#xfce4-power-manager-plugin { padding: 2px 2px; }

How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#5 2017-02-11 19:02:56

Hacksaurus_Babu
Member
Registered: 2017-02-11
Posts: 10

Re: How to adjust icon size on panel? [SOLVED]

ToZ Ok I'll try that tutorial! And yes, I accidentally forgot to include the "#" when copy pasting!


Glory to Arstotzka!

Offline

#6 2017-02-12 00:26:25

Hacksaurus_Babu
Member
Registered: 2017-02-11
Posts: 10

Re: How to adjust icon size on panel? [SOLVED]

No dice... I think HTML css will work... Isn't there a special GTK css?


Glory to Arstotzka!

Offline

#7 2017-02-12 01:26:26

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,372

Re: How to adjust icon size on panel? [SOLVED]

As far as I know, GTK3 uses the same measurements. See: https://developer.gnome.org/gtk3/stable … rties.html.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#8 2017-02-12 02:47:26

Hacksaurus_Babu
Member
Registered: 2017-02-11
Posts: 10

Re: How to adjust icon size on panel? [SOLVED]

Hmm.... Is there anything about rounding of measurements, because I think thats happening to me...


Glory to Arstotzka!

Offline

#9 2017-02-12 10:57:49

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,372

Re: How to adjust icon size on panel? [SOLVED]

Which distro are you using again? And more importantly, which version of GTK3?


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#10 2017-02-13 03:00:03

Hacksaurus_Babu
Member
Registered: 2017-02-11
Posts: 10

Re: How to adjust icon size on panel? [SOLVED]

I am using Arch and how exactly do I search up my version of GTK?


Glory to Arstotzka!

Offline

#11 2017-02-13 03:19:27

Hacksaurus_Babu
Member
Registered: 2017-02-11
Posts: 10

Re: How to adjust icon size on panel? [SOLVED]

Actually ToZ, because xfce4-volumed-pulse worked for me I don't have to use xfce4-pulseaudio-plugin... So I just have my battery plugin... So I don't have to worry about making the size perfect! 2 birds in one stone!

Marking as SOLVED


Glory to Arstotzka!

Offline

Board footer

Powered by FluxBB