Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Conversation

sratz
Copy link
Member

@sratz sratz commented May 19, 2025

There were several issues with the view_menu icon:

  • The checked in SVG files were not matching the PNG files which have been used so far.
  • The disabled PNGs were not actually disabled, but copies of the enabled ones.
  • A @2x.png icon was still the old chevron icons.

Fix:

  • Re-create the SVG file as closely as possible matching the previous PNG files.
  • Delete disabled SVG files and let the renderer derive the disabled PNG files.
  • Re-render everything.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The image looks good in the sense that it's similar/equal to the existing one.

I see the issue with the SVG I proposed in eclipse-platform/eclipse.platform.ui#2995 which leads to "squarely-looking" circles due to the circles being aligned with the grid. Reason for me to do so was that it produces sharper results. See that the existing icon is more blurry than the one I proposed. On the top, you see my SVG, at the bottom, you see yours:
image

I agree that we should better stick to the existing look and feel.

Copy link
Contributor

@BeckerWdf BeckerWdf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HeikoKlare
Copy link
Contributor

@BeckerWdf so you agree that we should take the icon that Sebastian proposed, as it conforms to the existing one (even though it looks a bit blurry when rendered), right?

@BeckerWdf
Copy link
Contributor

@BeckerWdf so you agree that we should take the icon that Sebastian proposed, as it conforms to the existing one (even though it looks a bit blurry when rendered), right?

No. I think we should go with the "sharp" one. Or does this version have other "problems"?

@BeckerWdf
Copy link
Contributor

Just checked your SVG. Based on the current PNG it's correct.

But to improve sharpness the radius of circles should be an integer multiple of 1 (not 4,5 px but either 4 px or 5 px).
We could also think doing the same for the thickness of the stroke. But maybe this then looks to thick and 0,7 is ok
See:
image

@sratz
Copy link
Member Author

sratz commented May 19, 2025

Yes, agreed. After looking at them a bit in the IDE, I think we should take the opportunity to clean this up.

Your sharper one (even though it looks slightly square) looks much better next to the angular-shaped minimize and maximize buttons.

But maybe this then looks to thick and 0,7 is ok

I think 0.7 is too much:

The following is a 200% screenshot. First circle ~0.5, second ~0.6, third ~0.7.
image

I'd say the current stroke width (~0.5) is perfect.

There were several issues with the view_menu icon:
- The checked in SVG files were not matching the PNG files which have
  been used so far.
- The disabled PNGs were not actually disabled, but copies of the
  enabled ones.
- A @2x.png icon was still the old chevron icon.

Fix:
- Use SVG file from
  eclipse-platform/eclipse.platform.ui#2995,
  clean up metadata and exactly align on pixel boundaries
  and (half) integer stroke width.
- Delete disabled SVG files and let the renderer derive the disabled
  PNG files.
- Re-render everything to PNG.
sratz added a commit to sratz/eclipse.platform.ui that referenced this pull request May 19, 2025
view_menu.svg was the wrong svg file, not matching the .pngs.

Follow-up on eclipse-platform#2925.

Uses the updated icons taken from
eclipse-platform/eclipse.platform.images#147
Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you! Tested the latest proposal and found it really convincing in eclipse-platform/eclipse.platform.ui#2994 (review)

@sratz sratz merged commit 5f78f3f into eclipse-platform:master May 19, 2025
3 checks passed
@sratz sratz deleted the view_menu branch May 19, 2025 14:45
sratz added a commit to eclipse-platform/eclipse.platform.ui that referenced this pull request May 19, 2025
view_menu.svg was the wrong svg file, not matching the .pngs.

Follow-up on #2925.

Uses the updated icons taken from
eclipse-platform/eclipse.platform.images#147
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants