如何更改 Eclipse IDE 中所有 VIEWS 的背景?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1933367/
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
How to change background of all VIEWS in Eclipse IDE?
提问by AntonAL
I would like to get a dark look for Eclipse IDE (Aptana). I changed background color of code editors and other colors. But i can't figure out, how to change background color of all views ... In Window -> Prefenreces -> Appearance -> Colors and Fonts i can tweak only few views (Plugin Manager, Script view, file view) but not all. Is there a way to do it ? What configuration files should i edit ?
我想对 Eclipse IDE (Aptana) 有一个黑暗的看法。我更改了代码编辑器的背景颜色和其他颜色。但我不知道如何更改所有视图的背景颜色...在窗口 -> Prefenreces -> 外观 -> 颜色和字体我只能调整几个视图(插件管理器、脚本视图、文件视图)但不能全部。有没有办法做到这一点?我应该编辑哪些配置文件?
回答by VonC
Update July 2012 (31 months later):
2012 年 7 月更新(31 个月后):
With the latest Eclipse4.2 (June 2012, "Juno") release, you won't depend on the OS colors anymore and can choose precisely the colors for each view (or any other elements) of your IDE.
See the article by Lars Vogelin "Eclipse 4 is beautiful – Create your own Eclipse 4 theme":
使用最新的 Eclipse4.2(2012 年 6 月,“Juno”)版本,您将不再依赖于操作系统颜色,并且可以为 IDE 的每个视图(或任何其他元素)精确选择颜色。
参见Lars Vogel在“ Eclipse 4 is beautiful – Create your own Eclipse 4 theme”中的文章:
If you want to play with it, you only need to write a plug-in, create a CSS file and use the
org.eclipse.e4.ui.css.swt.theme
extension point to point to your file.
If you export your plug-in, place it in the “dropins” folder of your Eclipse installation and your styling is available.
如果你想玩它,你只需要写一个插件,创建一个CSS文件并使用
org.eclipse.e4.ui.css.swt.theme
扩展点指向你的文件。
如果您导出插件,请将其放在 Eclipse 安装的“dropins”文件夹中,您的样式就可用了。
Original answer: December 2009
原答案:2009 年 12 月
As mentioned in the question Color Themes for Eclipse?, that kind of setting mainly concern the editor:
正如问题颜色主题中提到的Eclipse?,这种设置主要与编辑器有关:
But for the rest of the eclipse editor, this threadpoints out the difficulty:
但是对于eclipse编辑器的其余部分,这个线程指出了困难:
This is actually quite hard problem, because it seems that every plugin has it's own colors and you cannot any way set defaults which would inherit down to different plugins.
No, what you need to do is to change colors in every plugin. I think this is a problem in Eclipse's color management in general and not a PDT's problem.
这实际上是一个相当困难的问题,因为似乎每个插件都有自己的颜色,并且您无法以任何方式设置会继承到不同插件的默认值。
不,您需要做的是更改每个插件中的颜色。我认为这通常是 Eclipse 颜色管理中的一个问题,而不是 PDT 的问题。
The SO answer to Dark color scheme for Eclipse?mentions:
Eclipse 深色配色方案的 SO 答案?提到:
Most of the other views are controlled by the colors specified by the operating system.
For example, on Windows you can head to the Advanced Appearance settings and change the Window item with your desired colors.
Of course, this means all your applications change across the entire operating system, which may be good or bad depending on your taste.
大多数其他视图由操作系统指定的颜色控制。
例如,在 Windows 上,您可以前往高级外观设置并使用您想要的颜色更改窗口项目。
当然,这意味着您的所有应用程序在整个操作系统中都会发生变化,这可能是好是坏,这取决于您的喜好。
回答by a1an
For aptana, at least version 3, there are Themes to set colours of all the elements.
对于 aptana,至少版本 3,有 Themes 来设置所有元素的颜色。