Giter Club home page Giter Club logo

Comments (19)

ernstki avatar ernstki commented on July 23, 2024 17

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.

from elementary-indicators.

icex avatar icex commented on July 23, 2024 5

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

from elementary-indicators.

marcussacana avatar marcussacana commented on July 23, 2024 5

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

from elementary-indicators.

drequivalent avatar drequivalent commented on July 23, 2024 3

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?

from elementary-indicators.

marcussacana avatar marcussacana commented on July 23, 2024 2

@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

from elementary-indicators.

marcussacana avatar marcussacana commented on July 23, 2024 1

we never know what a update will break.

from elementary-indicators.

junocomp avatar junocomp commented on July 23, 2024

@icex You are a genius, thank you!

from elementary-indicators.

junocomp avatar junocomp commented on July 23, 2024

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

from elementary-indicators.

icex avatar icex commented on July 23, 2024

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

from elementary-indicators.

mdh34 avatar mdh34 commented on July 23, 2024

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

from elementary-indicators.

retrowiseninja avatar retrowiseninja commented on July 23, 2024

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

from elementary-indicators.

marcussacana avatar marcussacana commented on July 23, 2024

Not worked to me...

from elementary-indicators.

WebShapedBiz avatar WebShapedBiz commented on July 23, 2024

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.

from elementary-indicators.

WebShapedBiz avatar WebShapedBiz commented on July 23, 2024

Just awesome @marcussacana, you're golden.

from elementary-indicators.

mobdiz avatar mobdiz commented on July 23, 2024

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.

from elementary-indicators.

marcussacana avatar marcussacana commented on July 23, 2024

@mobdiz try my method

from elementary-indicators.

mobdiz avatar mobdiz commented on July 23, 2024

@mobdiz try my method

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

from elementary-indicators.

marcussacana avatar marcussacana commented on July 23, 2024

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

from elementary-indicators.

LightColoredLines avatar LightColoredLines commented on July 23, 2024

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

from elementary-indicators.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.