在 Eclipse 中更改 UI 颜色
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2439007/
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
Changing UI color in Eclipse
提问by o0'.
I'm aware of this topic: I've used it to change most of the editor colors, and that's great.
我知道这个主题:我已经用它来更改大多数编辑器颜色,这很棒。
But that wasn't enought, there's still too much white (and I need to change it because it hurts my eyes).
但这还不够,还有太多的白色(我需要改变它,因为它伤害了我的眼睛)。
I've searched in the preferences (both using Eclipse itself and editing the files) for instances of while (255,255,255) and changed them all. Looks like I'm missing something.
我在首选项(使用 Eclipse 本身和编辑文件)中搜索了 while (255,255,255) 的实例并将它们全部更改。看起来我错过了一些东西。
(I had to remove the screenshots since the hosting died)
(由于主机死亡,我不得不删除屏幕截图)
回答by VonC
Each time you see white or gray color, this is more than likely related to OS system colors.
每次您看到白色或灰色时,这很可能与OS 系统颜色有关。
In other word, to truly have an Eclipse full dark theme, you need first to have a dark theme for your OS, and then your Eclipse will follow.
换句话说,要真正拥有 Eclipse 全暗主题,您首先需要为您的操作系统设置一个暗主题,然后您的 Eclipse 就会随之而来。
Here is an example on a Windows7, modifying just one parameter:
这是 Windows7 上的示例,仅修改一个参数:
alt text http://img92.imageshack.us/img92/5053/eclipsered.png
回答by Wiretap
Probably not the answer your looking for, however the Intellij community edition is an excellent free IDE, and very easy to use. The background colours can be set and changed to many colours, but also there are a number of free plugins which can customise backgrounds, and the look and feel. Well worth a look if you don't find exactly what your looking for with Eclipse
可能不是您要寻找的答案,但是 Intellij 社区版是一款出色的免费 IDE,并且非常易于使用。背景颜色可以设置和更改为多种颜色,但也有许多免费插件可以自定义背景和外观。如果您在 Eclipse 中没有找到您想要的东西,那么非常值得一看
回答by Chris Lercher
I see you're on the Mac - the easiest thing to do would go to System Preferences -> Accessibility -> Seeing -> Display -> "White on Black". It will invert everything on your screen though, I don't know, if you'd like that?
我看到您使用的是 Mac - 最简单的方法是转到系统偏好设置 -> 辅助功能 -> 观看 -> 显示 ->“黑底白字”。不过,它会反转屏幕上的所有内容,我不知道,您是否愿意?
回答by jucardi
YES, THERE IS A WAY TO DO IT
是的,有办法做到
You will need to configure 3 things in order to get your dark UI.
您需要配置 3 件事才能获得暗色 UI。
1) Java Editor ColorsThis is the source code edition area. You can use http://eclipsecolorthemes.org/for the editor part, though those colors can be manually edited by default.
1) Java Editor Colors这是源码编辑区。您可以使用http://eclipsecolorthemes.org/作为编辑器部分,但默认情况下可以手动编辑这些颜色。
2) Eclipse UIThe UI colors can be edited with the addin Chrome Themewhich can be found in the eclipse market place or in the following link https://github.com/jeeeyul/eclipse-themes/. If you want a dark theme just edit away until you find the colors that suit you.
2) Eclipse UI可以使用插件Chrome 主题编辑 UI 颜色,该插件可以在 eclipse 市场或以下链接 https://github.com/jeeeyul/eclipse-themes/ 中找到。如果您想要深色主题,只需编辑即可,直到找到适合您的颜色。
3) Final touchesAfter doing the previous steps, some colors will still match the OS colors. To darken what's left, just get the pre-baked Dark Juno theme from https://github.com/eclipse-color-theme/eclipse-ui-themes. Download the zip file and unzip it into your dropinsfolder (which is located in your eclipse folder). If the dropinsfolder doesn't exist, just create it.
3) 最后的润色完成上述步骤后,有些颜色仍会与操作系统颜色相匹配。要使剩下的颜色变暗,只需从https://github.com/eclipse-color-theme/eclipse-ui-themes获取预先烘焙的 Dark Juno 主题。下载 zip 文件并将其解压缩到dropins文件夹(位于 eclipse 文件夹中)。如果dropins文件夹不存在,只需创建它。
Restart eclipse and you are set.
重新启动 eclipse 就可以了。