从头开始构建Eclipse IDE - 制作更大的图标有时成功 [英] Building Eclipse IDE from scratch - making bigger icons sometimes successful

查看:216
本文介绍了从头开始构建Eclipse IDE - 制作更大的图标有时成功的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使是最新的Eclipse Neon版本,在4k显示屏上仍然有一些小图标。这就是为什么我试图让他们更大。为此,我从零开始构建Eclipse IDE。



请阅读此StackOverflow问题,看看我是如何做到的:





任何帮助将不胜感激。如果我成功地使所有图标变大,我保证与大家分享解决方案(并提及您的贡献): - )



我相信小Eclipse图标是真实的对于高分辨率显示器的所有人或那些没有鹰眼睛祝福的人的痛苦。






PS:我有一些与Eclipse相关的其他问题从头构建主题。如果您有兴趣:




  • 解决方案

    从屏幕截图我相信您在4k屏幕上以100%的缩放比例运行。您可以将缩放因子指定为200%。日食中的缩放是由此控制的。霓虹灯只支持100%比例因子的倍数。有了这个,您将看到所有绘图代码和图像缩放。如果您需要更大的缩放比例为300%,400%等等。我们只有2x图像可用。您可能会看到图像在较高比例因子上模糊。但像线条矩形的图形可以正常工作。 Windows 7中的

    转到控制面板\外观和个性化\显示并使用自定义dpi设置为200%(如果不可用,在4k 200%应该默认情况下可用)。在Windows 10中



    转到自定义显示并设置滑块将文本,应用程序和其他项目的大小更改为200%。



    这将使eclipse放大。您需要在更改这些设置后重新启动eclipse。我建议您注销并重新登录,以使此更改完全生效。



    如果没有帮助,请使用[HiDpi]标签向平台SWT提出错误。



    PS我花了相当多的时间使这些图标在高dpi显示器上缩放。您不应该需要扩大图标。 Swt为你做的工作。需要的是在显示设置


    中设置正确的比例因子

    Even the newest Eclipse Neon edition has still somewhat small icons on a 4k display. That is why I'm trying to make them bigger. I resorted to building the Eclipse IDE from scratch for that purpose.

    Please read this StackOverflow question to see how I did that:

    Building Eclipse IDE from scratch - how to choose CDT over JDT?

    I wrote a Windows batch file that runs through all the folders and changes the size of every icon it can find. In my batch file, I presume that every .png , .gif, .bmp, .jpg and .ico file with dimensions below 48x48 pixels is an icon. And I double the size.

    I run that batch file just before starting the build.

    I get mixed results. The figure below shows that some icons do get much bigger - but others don't. Take for example the debug icon. It looks like its dimensions are still the old 16x16 pixels. Maybe my batch file was not complete, and it somehow skipped that one. So I check the eclipse sourcecode folders and find the debug icon. It is 32x32 pixels! So my batch file was correct. Why doesn't the eclipse build use it correctly?

    Any help would be much appreciated. If I succeed to make all icons larger, I promise to share the solution with everyone (and mention your contribution) :-)

    I believe the small Eclipse icons are a real pain for all people with high dpi displays or those people who are not blessed with eagle eyes. Developing code should not be a privilege for those with sharp eyesight - it should be accessible to all.


    PS: I've got some other questions related to the Eclipse "Build from scratch" topic. If you're interested:

    Let us all unite to build the Eclipse IDE ourselves - and tweak it to our needs ;-)

    解决方案

    From the screen shot I believe you are running with 100% scaling factor on 4k screen. You can specify the scaling factor to 200%. The scaling in eclipse is controlled by this. In Neon only multiples of 100% scaling factors supported. With this you'll see all drawing code and images scaled. If you need even bigger put the scaling factor to 300%, 400% etc. We have only 2x images available. You may see the images blurry on higher scaling factors. But the graphics like lines rectangles does work properly.

    in Windows 7 go to Control Panel\Appearance and Personalization\Display and use custom dpi settings to 200%(if it is not available, on 4k 200% should be available by default).

    in Windows 10 go to customize display and set the slider "Change size of text, apps and other items" to 200%.

    This will make the eclipse scaleup. You need to restart eclipse after changing these settings. I suggest logout and login again to get this change to full effect.

    If this did not help please raise a bug against platform SWT with [HiDpi] tag.

    P.S. I spent considerable amount of time to make these icons scaled on high dpi monitors. You should not be required to scale up the icons. Swt does the work for you. What is required is setting the correct scale factor in the display settings

    这篇关于从头开始构建Eclipse IDE - 制作更大的图标有时成功的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆