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

Big gap between icons #1

Open
junocomp opened this issue Aug 10, 2018 · 19 comments
Open

Big gap between icons #1

junocomp opened this issue Aug 10, 2018 · 19 comments

Comments

@junocomp
Copy link

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?

@icex
Copy link

icex commented Aug 13, 2018

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

@junocomp
Copy link
Author

@icex You are a genius, thank you!

@junocomp
Copy link
Author

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

@icex
Copy link

icex commented Aug 13, 2018

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

@mdh34
Copy link
Owner

mdh34 commented Aug 15, 2018

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

@drequivalent
Copy link

drequivalent commented Oct 2, 2018

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?

@retrowiseninja
Copy link

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

@marcussacana
Copy link

Not worked to me...

@marcussacana
Copy link

marcussacana commented Oct 27, 2019

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

@WebShapedBiz
Copy link

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.

@marcussacana
Copy link

@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

@WebShapedBiz
Copy link

Just awesome @marcussacana, you're golden.

@mobdiz
Copy link

mobdiz commented Nov 7, 2019

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.

@marcussacana
Copy link

@mobdiz try my method

@mobdiz
Copy link

mobdiz commented Nov 7, 2019

@mobdiz try my method

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

@marcussacana
Copy link

we never know what a update will break.

@marcussacana
Copy link

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

@ernstki
Copy link

ernstki commented Dec 2, 2019

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

@LightColoredLines
Copy link

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

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

No branches or pull requests

10 participants