【问题标题】:Eclipse Icons are really small on high resolution screen [duplicate]Eclipse图标在高分辨率屏幕上真的很小[重复]
【发布时间】:2015-11-25 08:33:50
【问题描述】:

正如标题所说,Eclipse 中的图标在我的 2560x1600 笔记本电脑屏幕上非常小。我发现即使调低分辨率并将其插入我的 1080p 显示器仍然会导致图标变小。

我找到了一个指向该站点的答案:https://github.com/davidglevy/eclipse-icon-enlarger,但我不知道如何使用它。有人可以帮忙吗?

提前致谢

【问题讨论】:

标签: java eclipse


【解决方案1】:

这已在最新版本的 eclipse 中修复,Eclipse Neon

SWT 现在可以在 Windows 的高 DPI 显示器上自动缩放图像 和 Linux,类似于 Mac 在 OS X 上的 Retina 支持。 高分辨率图像,SWT 将自动缩放可用图像到 确保对基于 SWT 的应用程序(如 Eclipse)进行扩展 与显示器的分辨率成正比。

为了比较,以下是它在没有高 DPI 支持的情况下在火星上的样子:

【讨论】:

    【解决方案2】:

    我发现的另一种方法是修改您的注册表文件。

    1. 打开 regedit 并转到 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide

    2. 添加新的 DWORD(32 位)值:PreferE‌​xternalManifest,十进制值为 1

    3. 转到您的 eclipse 文件夹并创建一个新文件:eclipse.exe.manifest,并将以下文本添加到文件中:

    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
    
      <description>eclipse</description>
    
      <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
        <security>
          <requestedPrivileges>
            <requestedExecutionLevel xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3" level="asInvoker" ms_asmv3:uiAccess="false">
            </requestedExecutionLevel>
          </requestedPrivileges>
        </security>
      </trustInfo>
    
      <asmv3:application>
        <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
          <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
        </asmv3:windowsSettings>
      </asmv3:application>
    </assembly>

    【讨论】:

      【解决方案3】:

      作者发帖instructions for his tool here。基本上,您必须从命令行运行它并且需要指定 Eclipse 基目录。然后,该工具将遍历所有目录,以使所有图标的大小加倍。

      用法语法是:

      java -jar eclipse-icon-enlarger.jar \
                  -b <Your Eclipse base directoy> \
                  -o <Desired output directory> \
                  --resizeFactor <Factor for icon increase>
      

      【讨论】:

      • 抱歉这个新手问题,但是我从哪里得到那个 .jar 文件呢?
      • 你可以找到一个JAR文件here。它的名字不同,但它基于同一个项目。
      猜你喜欢
      • 2014-01-10
      • 2015-12-31
      • 2017-01-07
      相关资源
      最近更新 更多