Eclipse:大工具栏图标
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5669762/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse: large toolbar icons
提问by Bryan Field
Does anybody know how to use large toolbar icons? Edit: How do I do it?
有人知道如何使用大工具栏图标吗?编辑:我该怎么做?
采纳答案by VonC
There is no support in Eclipse for large/small icons in the toolbar.
As this bug describes:
Eclipse 不支持工具栏中的大/小图标。
正如此错误所描述的:
The other issue though is really that the GNOME toolbar style, similar to Mac OS X, is for a small number of large icons, while the Eclipse toolbar style is for a large number of quick-access buttons.
This means that the recommendations for, say, icons vs icons+text don't really apply to the Eclipse toolbar.
另一个问题实际上是 GNOME 工具栏样式,类似于 Mac OS X,适用于少量大图标,而 Eclipse 工具栏样式适用于大量快速访问按钮。
这意味着对于图标与图标+文本的建议并不真正适用于 Eclipse 工具栏。
Update 2016 (5 years later)
2016 年更新(5 年后)
Since 2011, you have some workarounds, like this answerreferring to davidglevy/eclipse-icon-enlarger
, which double the size of the icon in the eclipse main jar.
You have more instructions at PhantomYdn/eclipse-icon-enlarger.
自 2011 年以来,您有一些变通方法,例如这个答案所指的davidglevy/eclipse-icon-enlarger
,它使 eclipse 主 jar 中的图标大小加倍。
您在PhantomYdn/eclipse-icon-enlarger有更多说明。
You have the same idea (double the size of icons) implemented as a script(here is an gene1wood/scale_eclipse.sh
)
你有同样的想法(图标大小的两倍)作为脚本实现(这里是一个gene1wood/scale_eclipse.sh
)
But if the issue is poor (too small) resolution on HiDPI / Retina displays, try also the actual official Microsoft workaround (as illustrated here)
但是,如果问题在 HiDPI / Retina 显示器上的分辨率很差(太小),请尝试实际的 Microsoft 官方解决方法(如图所示)
regedit:
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > SideBySide
: create a DWORDPreferExternalManifest
set to 1.Beside
eclipse.exe
, create aneclipse.manifest
file with, as content, one similar to this article.
regedit::
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > SideBySide
创建一个 DWORDPreferExternalManifest
设置为 1。此外
eclipse.exe
,创建一个eclipse.manifest
文件,内容与本文类似。
回答by axhuelsmann
Here is what to do for an easy solution:
以下是一个简单的解决方案:
- Go to the start icon of your eclipse or PLCXpressoand
- Click your right mouse bottom
- Go to down and click properties
- Click compartibility
- Check overwrite high DPI scaling
- Select system (extended)
- Click OK at the bottom
- 转到 eclipse 或 PLCXpresso 的开始图标和
- 单击鼠标右键底部
- 转到向下并单击属性
- 点击兼容性
- 检查覆盖高 DPI 缩放
- 选择系统(扩展)
- 点击底部的确定
Start Eclipse and enjoy
启动 Eclipse 并享受
回答by Barry
I have searched and searched for weeks for a solution to this problem If you want to solve it go to your eclipse folder and *.png search. Resize all the icons from 16x16 to 32x32 Then do the same for *.gif.
我已经搜索并搜索了数周以寻找解决此问题的方法如果您想解决它,请转到您的 eclipse 文件夹和 *.png 搜索。将所有图标从 16x16 调整为 32x32 然后对 *.gif 执行相同操作。
As you can see in the image I have not finished the task but it does work if you want to put in the time. I am sure there is an easier batch method of doing it I am sorry I have not found that yet. Just in case anyone is still using eclipse (which I prefer) and wanted larger toolbar icons there you go.
正如你在图片中看到的,我还没有完成任务,但如果你想投入时间,它确实有效。我确信有一种更简单的批处理方法,很抱歉我还没有找到。以防万一有人仍在使用 eclipse(我更喜欢)并且想要更大的工具栏图标。
EDIT: I found an easy to use batch tool called Fotosizer. It remembers all the icons file locations when you drag and drop your *.png *.gif found files into the image selection area. Just set up the options for sizing and set the output like the image I just uploaded. If 32x32 is too big for you just make them a little smaller. Fotosizer Click HereI used the free version. Screenshot Click Here
编辑:我发现了一个易于使用的批处理工具,称为 Fotosizer。当您将找到的 *.png *.gif 文件拖放到图像选择区域时,它会记住所有图标文件位置。只需设置调整大小的选项并将输出设置为我刚刚上传的图像。如果 32x32 对你来说太大了,就把它们缩小一点。Fotosizer 单击此处我使用了免费版本。 截图点这里
Be sure when you do your search to right click and sort the images by dimensions to make it easy for you to find all the 16x16 files in a group. This is in windows 7 64 bit version and RapidClipse Version: 2.3.1.201607130701
确保在搜索时右键单击并按尺寸对图像进行排序,以便您轻松找到一组中的所有 16x16 文件。这是在 Windows 7 64 位版本和 RapidClipse 版本中:2.3.1.201607130701
Take care, Barry
保重,巴里
回答by Frank
Adding this to your eclipse.ini:
将此添加到您的 eclipse.ini:
-Dswt.enable.autoScale=true
-Dswt.autoScale=150
-Dswt.autoScale.method=nearest
The -Dswt.autoScale=150 will increase your Icons, 150 will say 150%. If it is not enough, increase it.
-Dswt.autoScale=150 将增加您的图标,150 表示 150%。如果不够,就增加。
回答by Prof SII Suppléant
add -Dswt.autoScale=150
in eclipse.ini, is working for my hybrid win10 12.3"
添加-Dswt.autoScale=150
eclipse.ini,适用于我的混合 win10 12.3"
Thanks to Markus B
感谢马库斯 B
回答by Markus Bauer
I solved it on Linux by appending this line to eclipse.ini:
我通过将这一行附加到 eclipse.ini 在 Linux 上解决了这个问题:
-Dswt.autoScale=200
See the original answer on reddit: https://www.reddit.com/r/archlinux/comments/61zsds/eclipse_neon_on_hidpi_screen_and_plasmaa_5/
请参阅 reddit 上的原始答案:https: //www.reddit.com/r/archlinux/comments/61zsds/eclipse_neon_on_hidpi_screen_and_plasmaa_5/