nana-4 / materia-theme

A Material Design theme for GNOME/GTK based desktop environments
GNU General Public License v2.0
3.43k stars 256 forks source link

Xfce4: size of panel plugins' icons #363

Open bergentroll opened 5 years ago

bergentroll commented 5 years ago

Reporter Info

Actual Issue

I am using Materia with Papirus icon theme. There is an issue with panel plugins: it's icons have inappropriate size: Screenshot_2019-03-16_14-03-15 On picture notification bell and clipman board are too huge, while icons to right of them are OK. Also icons to the left of them are actually tray icons, and they seems alright too.

Additional Info

Adapta GTK theme have the same issue, while Adwaita gives proper size: Screenshot_2019-03-16_14-14-38 To see icons size changes Xorg restart required.

ghost commented 5 years ago

@bergentroll You can create ~/.config/gtk-3.0/gtk.css and add this inside:

#pulseaudio-button * { -gtk-icon-transform: scale(.7); }
#xfce4-clipman-plugin * { -gtk-icon-transform: scale(.7); }
#xfce4-power-manager-plugin * { -gtk-icon-transform: scale(.7); }
#xfce4-notification-plugin * { -gtk-icon-transform: scale(.7); }

Change value (.7) if it doesn't fit your panel correctly. Remove IDs you don't need, like PulseAudio line for example if this one is ok. The "*" after IDs could be not necessary, try with and without.

You can try to add some padding too: { -gtk-icon-transform: scale(.7); padding: 3px; }

Themes could add these rules, but it's probably a bad idea because it may be ugly on different panel sizes or with vertical panels. Note that Xfce 4.14 (targetted for august) should have a setting to set icons size, don't know if it will fix that. Some plugins received fixes for this issue, like the one for PulseAudio. Open a bug report in Xfce's bugzilla if there is none, but they should be aware of that.