如何更改 Eclipse 主题?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6937825/
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 can I change Eclipse theme?
提问by Bangkok Apartment
I want to change Eclipse theme like this Eclipse Dark Theme:
我想像这个 Eclipse Dark Theme 一样更改 Eclipse 主题:
I try to do all step in this page but eclipse theme not changed (but eclipse editor changed).
I want to change all part of eclipse IDE change to black color, not only eclipse's editor.
我尝试在此页面中执行所有步骤,但 eclipse 主题未更改(但 eclipse 编辑器已更改)。
我想将 eclipse IDE 的所有部分更改为黑色,而不仅仅是 eclipse 的编辑器。
回答by Tim Hughes
Take a look at rogerdudler/eclipse-ui-themes. In the readme there is a link to a file that you need to extract into your eclipse/dropins
folder.
看看rogerdudler/eclipse-ui-themes。在自述文件中有一个指向您需要提取到eclipse/dropins
文件夹中的文件的链接。
When you have done that go to
完成后转到
Window -> Preferences -> General -> Appearance
窗口 -> 首选项 -> 常规 -> 外观
And change the theme from GTK (or what ever it is currently) to Dark Juno
(or Dark).
并将主题从 GTK(或当前的任何主题)更改为Dark Juno
(或黑暗)。
That will change the UI to a nice dark theme but to get the complete look and feel you can get the Eclipse Color Theme plugin from eclipsecolorthemes.org. The easiest way is to add this update URI to "Help -> Install New Software" and install it from there.
这会将 UI 更改为漂亮的深色主题,但要获得完整的外观和感觉,您可以从 eclipsecolorthemes.org 获取 Eclipse Color Theme 插件。最简单的方法是将此更新 URI 添加到“帮助 -> 安装新软件”并从那里安装。
This adds a "Color Theme" menu item under
这在下面添加了一个“颜色主题”菜单项
Window -> Preferences -> Appearance
窗口 -> 首选项 -> 外观
Where you can select from a large range of editor themes. My preferred one to use with PyDev is Wombat. For Java Solarized Dark
您可以从大量编辑器主题中进行选择。我最喜欢与 PyDev 一起使用的是 Wombat。对于 JavaSolarized Dark
回答by VonC
Update December 2012 (19 months later):
2012 年 12 月更新(19 个月后):
The blog post "Jin Mingjian: Eclipse Darker Theme" mentions this GitHub repo "eclipse themes - darker":
博客文章“金明鉴:Eclipse Darker Theme”提到了这个GitHub repo“ eclipse主题-darker”:
The big fun is that, the codes are minimized by using Eclipse4 platform technologies like dependency injection.
It proves that again, the concise codes and advanced features could be achieved by contributing or extending with the external form (like library, framework).
New language is not necessary just for this kind of purpose.
最大的乐趣在于,通过使用依赖注入等 Eclipse4 平台技术,代码被最小化。
再次证明,通过贡献或扩展外部形式(如库、框架)可以实现简洁的代码和高级功能。
仅仅为了这种目的,新语言并不是必需的。
Update July 2012 (14 months later):
2012 年 7 月更新(14 个月后):
With the latest Eclipse4.2 (June 2012, "Juno") release, you can implement what I originally described below: a CSS-based fully dark theme for Eclipse.
See the article by Lars Vogelin "Eclipse 4 is beautiful – Create your own Eclipse 4 theme":
使用最新的 Eclipse4.2(2012 年 6 月,“Juno”)版本,您可以实现我最初在下面描述的内容:Eclipse 的基于 CSS 的全黑主题。
参见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: August 2011
原答案:2011 年 8 月
With Eclipse 3.x, theme is only for the editors, as you can see in the site "Eclipse Color Themes".
Anything around that is managed by windows system colors.
That is what you need to change to have any influence on Eclipse global colors aroundeditors.
在 Eclipse 3.x 中,主题仅供编辑人员使用,您可以在“ Eclipse Color Themes”站点中看到。
周围的任何东西都由 Windows 系统颜色管理。
这就是您需要更改的内容才能对编辑器周围的Eclipse 全局颜色产生任何影响。
Eclipse 4 will provide much advance theme options: See "Eclipse 4.0 – So you can theme me Part 1" and "Eclipse 4.0 RCP: Dynamic CSS Theme Switching".
Eclipse 4 将提供许多高级主题选项:请参阅“ Eclipse 4.0 – 所以你可以为我设置主题第 1 部分”和“ Eclipse 4.0 RCP:动态 CSS 主题切换”。
回答by jeeeyul
My Theme plugin provide full featured customization for Eclipse 4.
Try it.
Visit Plugin Page
我的主题插件为 Eclipse 4 提供全功能定制。试试吧。
访问插件页面
回答by Abhishek Muralidharan
The best way to Install new themes in any Eclipse platform is to use the Eclipse Marketplace.
在任何 Eclipse 平台上安装新主题的最佳方式是使用 Eclipse Marketplace。
1.Go to Help > Eclipse Marketplace
1.转到帮助> Eclipse Marketplace
2.Search for "Color Themes"
2.搜索“颜色主题”
3.Install and Restart
3.安装并重启
4.Go to Window > Preferences > General > Appearance > Color Themes
4.转到窗口>首选项>常规>外观>颜色主题
5.Select anyone and Apply. Restart.
5.选择任何人并应用。重新开始。