elementary-indicators icon indicating copy to clipboard operation
elementary-indicators copied to clipboard

Big gap between icons

Open junocomp opened this issue 7 years ago • 19 comments

I've been trying to find a solution to this for a while but I can't seem to find one.

In Loki the icons are well spaced

loki_a

In Juno, the legacy icons have a big gap in between icons.

screenshot from 2018-08-10 16 29 34

Does anyone know how to fix it?

junocomp avatar Aug 10 '18 20:08 junocomp

Hi,

Try setting the padding to '0 2px' in your theme -> apps.css

In my case I use https://github.com/surajmandalcell/elementary-x : /usr/share/themes/elementary-x/gtk-3.22/apps.css

.composited-indicator {
    padding: 0 2px;
}

Then set your theme to something else and then back again to make sure the changes are refreshed(or restart/log out)

screenshot from 2018-08-13 22-27-36

icex avatar Aug 13 '18 19:08 icex

@icex You are a genius, thank you!

junocomp avatar Aug 13 '18 20:08 junocomp

@icex is there a way to add the apps.css to ~./themes? I am afraid that every update elementary-themes gets will break go back to the default settings.

junocomp avatar Aug 13 '18 21:08 junocomp

I think you can copy /usr/share/themes/elementary to .themes/someothername , change the apps.css, then set the theme name to someothername

icex avatar Aug 13 '18 21:08 icex

This could alternatively be fixed by shipping some css within the wingpanel indicator itself

mdh34 avatar Aug 15 '18 11:08 mdh34

This could alternatively be fixed by shipping some css within the wingpanel indicator itself

Yeah, please do so

However, editing .composited-indicator padding changes all indicators padding, including system ones which are fine. Can we edit only Ayatana indicators padding?

drequivalent avatar Oct 02 '18 15:10 drequivalent

This could alternatively be fixed by shipping some css within the wingpanel indicator itself

Yeah, please do so

However, editing .composited-indicator padding changes all indicators padding, including system ones which are fine. Can we edit only Ayatana indicators padding?

Ayatna indicators having the same default padding. That would be great

retrowiseninja avatar May 03 '19 16:05 retrowiseninja

Not worked to me...

marcussacana avatar Oct 27 '19 18:10 marcussacana

Okay, I tried the community fork, and builded by myself, here is the git, and if you don't want build: 1 - Install the wingpanel indicator .deb here (the same deb in the link of this git) 2 - Download libayatana_compatibility.so.zip 3 - Go To (with sudo) /usr/lib/x86_64-linux-gnu/wingpanel/ 4 - Backup your libayatana_compatibility.so 5 - Replace the libayatana_compatibility.so with the zipped one 6 - Reboot

Before: image After: image

PS: I'm using the JUNO

marcussacana avatar Oct 27 '19 20:10 marcussacana

Thank you @marcussacana for this fix, especially because it seems that the wingpanel from the version 2.2.6 is completely ignoring .composited-indicator selector.

Would you though reconsider leaving the size of ayatana indicator icons as they were before? I've noticed that they are smaller now but the height of the wingpanel is the same so there is no actual gain for having them smaller.

Once again, thank you for your time and effort with this fix.

Cheers.

WebShapedBiz avatar Nov 01 '19 15:11 WebShapedBiz

@WebShapedBiz As you asked, I did a build that don't change the icon size, here: libayatana_compatibility.so.zip I think this time I don't need say how you install it.

Before: image After: image

marcussacana avatar Nov 01 '19 15:11 marcussacana

Just awesome @marcussacana, you're golden.

WebShapedBiz avatar Nov 01 '19 15:11 WebShapedBiz

Hi,

Try setting the padding to '0 2px' in your theme -> apps.css

In my case I use https://github.com/surajmandalcell/elementary-x : /usr/share/themes/elementary-x/gtk-3.22/apps.css

.composited-indicator {
    padding: 0 2px;
}

Then set your theme to something else and then back again to make sure the changes are refreshed(or restart/log out)

screenshot from 2018-08-13 22-27-36

Now it does not work. Maybe something has changed during the upgrade.

mobdiz avatar Nov 07 '19 07:11 mobdiz

@mobdiz try my method

marcussacana avatar Nov 07 '19 07:11 marcussacana

@mobdiz try my method

@marcussacana Thank you very much. Helped. It will not break after the upgrade?

mobdiz avatar Nov 07 '19 11:11 mobdiz

we never know what a update will break.

marcussacana avatar Nov 07 '19 12:11 marcussacana

Guys, isn't related with this issue, but since is a little dead the wingpanel community I want notify everyone about more one small trick, this time to make the wingpanel submenu works, I tested with SVP4 menu https://github.com/eth-p/wingpanel-indicator-ayatana/issues/11#issuecomment-558350032

marcussacana avatar Nov 25 '19 21:11 marcussacana

For what it's worth, creating a ~/.config/gtk-3.0/gtk.css with these contents worked fine for me on an up-to-date ~Juno~Hera system:

/* source: https://github.com/mdh34/elementary-indicators/issues/1 */
.composited-indicator {
    padding: 0 2px;
}

I'll try to remember to update this comment some future update breaks that, but for now, this is a straightforward enough solution that doesn't require re-editing the app.css associated with the theme (as root) every time the distro package gets updated and clobbers your CSS tweaks.

ernstki avatar Dec 02 '19 22:12 ernstki

I do a comparation between @marcussacana method and @ernstki method.

@marcussacana Solution for indicator icons big gaped

@ernstki Screenshot from 2020-01-08 20-16-05ed

Both reduce the gap. BUT, @marcussacana method has a maintain icon size (that yellow sticky note icon), and @ernstki method not maintain the size (it look big, not the same as the other). Maybe you can try to add more content inside gtk.css ? @ernstki

LightColoredLines avatar Jan 08 '20 13:01 LightColoredLines