Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease icon padding size #19

Open
phillip-white-sociomantic opened this issue Nov 28, 2016 · 12 comments
Open

Decrease icon padding size #19

phillip-white-sociomantic opened this issue Nov 28, 2016 · 12 comments

Comments

@phillip-white-sociomantic

Would it be possible to decrease the icon padding size on the applet?

image

In /usr/lib/mate-indicator-applet/mate-indicator-applet-complete there is GtkMenuItem::horizontal-padding = 0, however it doesn't seem to have any effect.

@phillip-white-sociomantic
Copy link
Author

phillip-white-sociomantic commented Nov 29, 2016

I found a wee work around. If you go to Mate Tweak, and choose Netbook as the panel layout, and then go back to "Redmond" (menu at the bottom) the "Notification Area" applet now shows running apps:

image

Not sure if this is a bug... but it's a good bug :)

Still, would be nice if we can change the padding size with mate-indicator-applet

@CodeMouse92
Copy link

Definitely would be useful.

@FaberfoX
Copy link

The layout change on Ubuntu Mate 18.04 does nothing, spacing is still the same on the Netbook layout. Past fixes that involved creating ~/.gtkrc-2.0 are not working either.
Any ideas that work on 1.20.0-1?

@zezic
Copy link

zezic commented Apr 29, 2018

@FaberfoX I use this:
~/.config/gtk-3.0/gtk.css

.mate-panel-menu-bar menuitem {
    padding: 0 2px;
}

@14v
Copy link

14v commented Nov 28, 2018

Used padding: 0;, 0 2px gives still bigger free space.

@14v
Copy link

14v commented Nov 29, 2018

There is the issue with zero vertical padding - tray context menus padding is affected. padding: 4px 0; is correct for me.

@zezic
Copy link

zezic commented Nov 29, 2018

There is also an issue with padding of global menu applet, because its elements are also affected by .mate-panel-menu-bar menuitem selector. It would be nice if someone could provide a way to negate selector against global menu widget or to narrow it to tray applet.

@lukefromdc
Copy link
Member

One way to counter that would be to give the applet a widget name, allowing that to be explicity themed and override the more general .mate-panel-menu-bar menuitem

@trongthanh
Copy link

@zezic I'm also a fan of global menu and have the same issue with yours. So I dive into the vala-panel-appmenu source code and found the selector they used. So here, in the custom ~/.config/gtk-3.0/gtk.css, I add back the global menu items padding with below CSS:

.mate-panel-menu-bar menuitem {
    padding: 2px 2px;
}

.-vala-panel-appmenu-private > menuitem {
    padding: 2px 6px; /* vertical then horizontal paddings */
}

You can increase the 2px vertical padding if your panel height is bigger.

@yermulnik
Copy link

Apologies for resurrecting old issue but the below hack didn't work for me:

> cat  ~/.config/gtk-3.0/gtk.css
.mate-panel-menu-bar menuitem {
    padding: 0;
}

изображение
Padding still looks awkward =( Any hints?
I'm on Linux Mint 18.3 Sylvia with Mate 1.18.* (don't know what is the exact name of the mate component that is responsible for notification area in the panel).

@bechampion
Copy link

gotta do it in the theme you're currently using.
eg:
/usr/share/themes/dracula/gtk-3.20/gtk.css

@yermulnik
Copy link

@bechampion Thanks. I will try this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants