有什么办法可以让Eclipse彻底变成黑暗IDE吗?
这是我要问的图片:
我不介意花 1 小时的时间来做这样的事情:D
编辑:
正如 Konstantin Komissarchik 所说,我必须修改我的操作系统颜色。这可以通过向 Windows 添加自定义视觉样式来实现。借助 自定义主题 和 Windows 7 的自定义视觉样式(我稍微改变了一点),我的 Eclipse 如下图所示:
2019 年更新:
最新版本的 Eclipse 现在带有深色主题。只需转到 Window ->首选项->一般->外观->主题
并根据您的操作系统选择“深色”或其他合适的版本。
当然,您仍然可以为 Windows 启用深色视觉样式或更改其他操作系统上的主题,但默认的深色主题在大多数情况下就足够了。
Is there any way to completely turn Eclipse to a dark IDE?
Here's a Picture of what I'm asking:
I don't mind doing 1 hour of work to do something like this :D
EDIT:
As Konstantin Komissarchik said, I had to modify my OS colors. This is possible by adding a custom Visual Style to the Windows. With the aid of a Custom Theme and a Custom Visual Style for Windows 7 (Which I have changed a little bit), my Eclipse looks like the picture below:
Update 2019:
The latest versions of Eclipse now come with a dark theme. Just go to Window -> Preferences -> General -> Appearance -> Theme
and select "Dark" or another appropriate version based on your operating system.
Of course you can still enable dark visual styles to your Windows or change your theme on other operating systems but the default dark theme is good enough for the most part.
发布评论
评论(21)
Moonrise 是我见过的 Eclipse 最好的深色主题!
只需按照网站上的步骤操作即可享受!
https://github.com/guari/eclipse-ui-theme
Moonrise is the best dark theme I have ever seen for Eclipse!
Just follow the steps on the website and Enjoy!
https://github.com/guari/eclipse-ui-theme
2016 年 8 月更新:
Tejas Padliya 添加了在评论中:
2014 年 6 月更新:
正如提到的 din "深色主题,顶级 Eclipse Luna 功能 #5", Eclipse 4.4 (Luna ) 包含一个深色主题(请参阅 informatik01 的 评论):
新内容页面提到:
2013 年 4 月更新:
根据 Lennart 中的说法,下面的解决方案似乎不适用于 Eclipse Juno 4.2 和 Windows 8 评论。
一种(大部分)有效的解决方案是 Eclipse Chrome 主题< /a> (兼容 Juno 4.2 甚至 Kepler 4.3),来自 GitHub 项目 eclipse -主题,作者:Jeeeyul Lee。
这篇文章提到:
~~~~~~~~~~~~~~
2012 年 12 月更新(20 个月后):
博客文章“金明健:Eclipse 深色主题" 提到了这个GitHub 存储库“eclipse 主题 - darker”:
2012 年 7 月更新(15 个月后):
我见过一个! (即 Eclipse 的全暗主题),正如 Lars Vogel 在“Eclipse 4 很漂亮 – 创建您自己的Eclipse 4 主题":
pixeldude 在发布的评论中提到GitHub 上的“Dark Juno”!
科莫达夫 提到您并不总是需要插件:请参阅“Ubuntu + Eclipse 4.2 - 深色主题 - 如何使侧边栏背景变暗?”作为示例,基于 gtkrc 资源。
原始答案:2011 年 3 月
请注意,e4 可以实现全深色主题。
(请参阅 带有 e4 的动态 css 或 e4 一周 – e4 主题):
与此同时,仅适用于编辑人员(这不是您想要的,但仍然值得一提):
www.eclipsecolorthemes.org:
Update August 2016:
Tejas Padliya adds in the comments:
Update June 2014:
As mentioned din "Dark Theme, Top Eclipse Luna Feature #5", Eclipse 4.4 (Luna) has a dark theme included in it (see informatik01's comment):
The What's new page mentions:
Update April 2013:
It seems the solution below don't work well with Eclipse Juno 4.2 and Windows 8, according to Lennart in the comments.
One solution which (mostly) work is the Eclipse Chrome Theme (compatible Juno 4.2 and even Kepler 4.3), from the GitHub project eclipse-themes, by Jeeeyul Lee.
This post mentions:
~~~~~~~~~~~~~~
Update December 2012 (20 months later):
The blog post "Jin Mingjian: Eclipse Darker Theme" mentions this GitHub repo "eclipse themes - darker":
Update July 2012 (15 months later):
I have seen one! (Ie, a fully dark theme for Eclipse), as reported by Lars Vogel in "Eclipse 4 is beautiful – Create your own Eclipse 4 theme":
pixeldude mentions in the comments having publish "Dark Juno" on GitHub!
Komododave mentions that you don't always need a plugin: see "Ubuntu + Eclipse 4.2 - Dark theme - How to darken sidebar backgrounds?" for an example, based on gtkrc resource.
Original answer: March 2011
Note that a full dark theme will be possible with e4.
(see dynamic css with e4 or A week at e4 – Themeing in e4):
In the meantime, only for editors though (which isn't what you want but still merit to be mentioned):
www.eclipsecolorthemes.org:
更新 2:该插件的一个分支已与主 Eclipse 平台合并。您应该会发现它在未来的 Eclipse 版本中预安装了;)
更新:我发布了一个新版本,它有点暗,现在几乎所有当前可以修改的内容都已与主题颜色对齐。玩得开心!
这是一个屏幕截图:
如果您愿意,我在 github 上上传了几个月前制作的深色主题,以避免弄瞎我的眼睛当在编辑器上花费大量时间时..我之所以这样做是因为与所有其他主题相比,某些 Eclipse 部分仍然丑陋且无风格。
您可以在这里找到它: http://guari.github.io/eclipse-ui-theme/
使用我的 Eclipse 配置工作得很好,如果您发现一些元素仍然没有样式,您可以提交问题或建议更改,如果可能的话我会尝试纠正它;)(提醒一下,目前,CSS Eclipse 中的样式支持不完整,有时还存在错误..)
UPDATE 2: A fork of this plugin has been merged with the main Eclipse Platform. You should find it pre-installed in the future Eclipse releases ;)
UPDATE: I released a new version, it's a little bit darker, now pretty everything that can be currently modified has been aligned to the theme colors. Have fun!
Here is a screenshot:
if you may like, I uploaded on github a dark theme I made some months ago to avoid blinding my eyes when spending many hours on the editor.. I made it because with all the others themes some Eclipse parts remains ugly and unstyled.
You can find it here: http://guari.github.io/eclipse-ui-theme/
With my Eclipse configurations works quite ok, if you'll find some elements that remains unstyled you can submit an issue or suggest a change and I'll try to correct it if it's possible ;) (remind that currently, CSS styling support in Eclipse it's uncomplete and sometimes buggy..)
有一个全新的免费插件,它非常黑暗,支持 Retina,并且有漂亮的图标。
最重要的是:它在WINDOWS上不那么糟糕!它没有白色滚动条和其他工件。天真的很黑。
你会在那里找到它:
https://marketplace.eclipse.org/content/darkest-dark-theme
这是它的样子就像在配备 Retina 屏幕的 Windows 10 上一样:
There is a completely new, free plugin which is really DARK, supports Retina and has beautiful icons.
What is most important: It doesn't suck on WINDOWS! It doesn't have white scrollbars and other artifacts. It's really dark.
You'll find it there:
https://marketplace.eclipse.org/content/darkest-dark-theme
This is how it looks like on Windows 10 with Retina screen:
这是我的 Chrome 主题插件的 Black Eclipse 自定义 CSS。可与 eclipse 4.2 和 4.3 一起使用。主要目标是让它在 ubuntu 中看起来更漂亮,除了让它变得“更暗”。
注意:在 Windows 系统上可能工作也可能不工作,仅在 ubuntu 上进行检查。
必需:Chrome 主题和颜色主题插件
安装上述插件。它们可以在 eclipse 市场中找到。
在颜色主题中安装我的 Gedit Oblivion 主题变体并激活它。 (http://eclipsecolorthemes.org/?view=theme&id=12544)
在 Chrome 主题的 css 编辑器中插入自定义 css。我花了几个小时用 CSS Spy 找出所有相关信息,使 eclipse 变黑并使这个文件尽可能小。还有一个 .epf 文件用于您应该导入的 Chrome 主题插件首选项。
您可以从我的保管箱中获取它:https://www.dropbox.com/sh/ye5tosl3cjhx96d /yL-_Y5j1PE
最后你的日食将如下所示:
玩得开心!
Here is my Black Eclipse Custom CSS for Chrome Theme Plugin. Usable with eclipse 4.2 and 4.3. Main goal was to make it look nice in ubuntu, besides making it "darker".
Caution: May or may not work on Windows Systems, only checked with ubuntu.
Required: Chrome Theme and Color Theme plugin
Install those mentioned plugins. They can be found in the eclipse marketplace.
Install my variant of Gedit Oblivion Theme in Color Theme and activate it. (http://eclipsecolorthemes.org/?view=theme&id=12544)
Insert the custom css in css editor of Chrome Theme. I spend several hours with CSS Spy to find out all the relevant information to make eclipse as black and this file as small as possible. There is also an .epf File for the Chrome Theme plugin preferences you should import.
You can get it from my dropbox: https://www.dropbox.com/sh/ye5tosl3cjhx96d/yL-_Y5j1PE
In the end your eclipse will look like this:
Have Fun!
安装较新版本的 Eclipse(Luna Release (4.4.0) 或更高版本),它默认包含一个很棒的 Dark 主题。
这是屏幕截图:
Install a newer version of Eclipse, (Luna Release (4.4.0) or more recent), it include a great Dark theme by default.
Here is a screenshot :
Eclipse 对大多数 UI 方面(按钮、菜单、列表等)使用本机操作系统控件。这就是大多数 IDE 颜色的来源。制作“深色 IDE”的第一步是修改操作系统颜色主题。然后您可以添加颜色主题插件来完成外观。
Eclipse uses native OS controls for most UI aspects (buttons, menus, lists, etc.). That's where colors for most of the IDE come from. The first step in making a "dark IDE" is to modify your OS color theme. Then you can add the color themes plugin to complete the look.
很简单。只需下载此文件DarkJuno Theme。然后解压rar文件并复制
com.github.eclipsecolortheme .themes_1.0.0.201207121019.jar
文件到/yourEclipsHome/dropins
。然后重新启动 Eclips 并转到
window/preference/General/Appearance
。在下拉菜单中选择Dark Juno
主题。就是这样。重新启动您的 Eclips。如需了解更多信息,请观看此视频教程
Its Simple.just Download this file DarkJuno Theme.Then Extract the rar file and copy
com.github.eclipsecolortheme.themes_1.0.0.201207121019.jar
file to/yourEclipsHome/dropins
.Then restart Eclips and go to
window/preference/General/Appearance
.In there chooseDark Juno
theme on Dropdown. Thats it. Restart Your Eclips.For More Info watch this video tutorial
如果深色主题的目的是让您的眼睛舒适,您可以启用操作系统的高对比度设置。例如,在 Windows 8.1 中,您可以通过按 ALT + 左 SHIFT + PRINT SCREEN 来打开/关闭高对比度,
这将使整个操作系统处于黑暗状态模式,不仅仅是 eclipse。下面是启用高对比度的 Eclipse 屏幕截图示例
If the purpose of a dark theme is to make your eyes comfortable, you can enable High Contrast settings of your Operating System. For example in Windows 8.1 you can turn on - off High Contrast by pressing ALT + left SHIFT + PRINT SCREEN
This will make entire OS in dark mode, not only eclipse. Below is a sample screenshot of Eclipse with High Contrast enabled
如果您在 ubuntu 12+ 中获取 compiz 设置管理器,请在辅助功能启用负数中设置快捷方式。默认为 super+n。现在让 eclipse 成为焦点并按 super+n 或您设置的键。这将在 Eclipse 上应用负过滤器。
If you are in ubuntu 12+ get compiz settings manager, in accessibility enable negative, set the shortcuts. The default is super+n. Now make eclipse be in focus and press the super+n or the key you set it as. This will apply negative filter on eclipse.
我已经基于流行的 Windows 7“凹 7”主题为 Eclipse 黑暗朱诺主题构建了一个 Win 7 黑暗主题。
我还创建了一个深色主题,灵感来自于 Janni Nurmin 创建的编辑器颜色主题“Zenburn”,
以下是该主题的照片:
https://plus.google.com/u/0/photos/114921213517944089128 /albums/5952793008016527457
该主题的所有设置都可以在 github 上找到:
https://github.com/youjenli/dark-theme-for-win7-eclipse
感谢您的反馈和建议,谢谢!
I've build a win 7 dark theme base on the popular windows 7 'concave 7' theme for eclipse dark juno theme.
And I also create a dark theme inspired from the editor color theme 'Zenburn' created by Janni Nurmin
Here are photos of this theme:
https://plus.google.com/u/0/photos/114921213517944089128/albums/5952793008016527457
All settings of this theme is available on github:
https://github.com/youjenli/dark-theme-for-win7-eclipse
And feedback and suggestion is appreciated, thank you!
对于 Visual Studio 2013 深色主题:
合并 来自 eclipsecolorthemes.org 的此首选项文件( .epf)以及 Eclipse Luna 的内置深色主题。我能够通过以下步骤做到这一点:
在 eclipsecolorthemes.org 上搜索更多 VS 深色主题的示例
For a Visual Studio 2013 Dark Theme:
Combine this preferences file from eclipsecolorthemes.org (an .epf) with the built-in dark theme from Eclipse Luna. I was able to do so with the following steps:
An example search for more VS Dark Themes on eclipsecolorthemes.org
我花了几个小时寻找一个好的解决方案来使我的 eclipse UI 变暗,我终于找到了一种方法。我正在使用Fedora 18 和 Eclipse for PHP Developers (PDT v3.0.2)。
最好的解决方案是下载 DeLorean 黑暗主题,然后在 Gnome Shell 中启用它。
安装过程:
设计如下:https://i.sstatic.net/Xx7m6。 png
此过程适用于 Eclipse PHP 和 Aptana 3。如果您使用 Eclipse 4 及更高版本,我推荐 Eclipse 的 DeLorean 深色主题:http://goo [DOT] gl/wkjj8
I've spent few hours looking for a nice solution to make my eclipse UI dark, and I have finally found a way to do it. I am using Fedora 18 and Eclipse for PHP Developers (PDT v3.0.2).
The nicest solution is to download DeLorean Dark Theme then enabling it in Gnome Shell.
Installation procedure:
Here is what it looks like: https://i.sstatic.net/Xx7m6.png
This procedure is for Eclipse PHP and Aptana 3. If you are using Eclipse 4 and higher, I recommend DeLorean Dark Theme for eclipse: http:// goo [DOT] gl/wkjj8
这个问题有一个非常简单和容易的解决方案)只需几个简单的步骤即可将丑陋的 Eclipse 变成完全黑暗的野兽)
全黑 Eclipse 的示例
不需要繁重的工作或手动编辑文件!
至少这适用于 Ubuntu 14.04 上的最后一个 Eclipse (Mars 2)(尽管我认为这样的过程应该适用于所有操作系统)
所以:
下载一些深色 GTK 主题
例如,您可以从 http://www.noobslab.com/ 获取一些内容
要应用新安装的主题,您将需要 Unity 调整工具
启动 Unity 调整 - 外观 - 主题 - 应用你的深色主题
打开 Eclipse;在首选项中选择 GTK 主题
在 Eclipse 中,打开 Marketplace 并安装颜色主题 - 您将能够更改编辑器背景并突出显示颜色以匹配您的深色主题
关闭 Eclipse
转到 Eclipe 文件夹:
../Eclipse/plugins/org.eclipse.ui.themes_WHATEVER_NUMBER_HERE/
在该文件夹中重命名或删除“css”文件夹
打开并享受完全黑暗的 Eclipse!
PS:安装几个深色主题并尝试哪个更适合你
There is pretty simple and easy solution to this problem) Just few simple steps that will transform your ugly Eclipse into fully darked beast)
example of full darked Eclipse
No heavy work or manually editing files required!
At least this works with the last Eclipse (Mars 2) on Ubuntu 14.04 (though i think such process should work on all OS's)
So:
Download some dark GTK theme
for example, you can grab few from http://www.noobslab.com/
To apply your newly installed theme you will need Unity tweak tool
Launch Unity tweak - Appearance - Theme - apply your dark theme
Open Eclipse; in preferences choose GTK theme
In Eclipse, open Marketplace and install Color Theme - you will be able to change editor background and highlight colors to match your dark theme
Close Eclipse
Go to Eclipe folder:
../Eclipse/plugins/org.eclipse.ui.themes_WHATEVER_NUMBER_HERE/
in that folder rename or delete 'css' folder
Open and enjoy fully darked Eclipse!
PS: install a few dark themes and try which will suit you more
相反,如果找到夜间主题,我找到了一个实用程序,可以将我的整个桌面置于夜间模式NegativeScreen。
我使用下面调整后的“Smart Inversion Alt 2”矩阵,其中黑色稍微变亮。
Instead if finding a night theme I found a utility that puts my entire desktop into night mode NegativeScreen.
I use the below adjusted 'Smart Inversion Alt 2' matrix where the black is lightened a little.
有一个新插件为 Eclipse 提供完整主题:
http://brainwy.github.io/liclipse/
它与 Eclipse 颜色主题集成,以便在首选项中选择新主题时 >一般>外观>颜色主题,适当的背景也适用于 IDE 的其他部分(对所有内容进行主题化或仅对先前根据同一页面中的组合注册的视图进行主题化)。
除了主题之外,它还提供了很多其他东西:)
There's a new plugin which provides full theming for Eclipse:
http://brainwy.github.io/liclipse/
It's integrated with Eclipse Color Theme so that when a new theme is selected in preferences > general > appearance > color theme, the proper background is also applied to other parts of the IDE (theming everything or just views which are previously registered according to a combo in that same page).
And besides theming it provides a bunch of other things :)
您可以使用上面的这个很棒的主题,并仅为来自此站点的编辑器添加预定义主题:
http://eclipsecolorthemes.org/
(我使用 guari 和 retta,我认为这看起来真的很好:)
我希望它能帮助别人:)
You can use this great theme from above and add predefined theme only for editor from this site:
http://eclipsecolorthemes.org/
(I use guari and retta and I think that looks real good :)
I hope that it will help someone :)
最黑暗的黑暗是最好的黑暗主题。
它还带有不同的工具栏图标形状。这是链接:
https://marketplace.eclipse.org/content/darkest-dark-主题
希望你喜欢。
Darkest Dark is the best dark theme.
It also comes with different toolbar icon shapes. Here's the link :
https://marketplace.eclipse.org/content/darkest-dark-theme
Hope you like it.
Windows 10 用户
如果您想在 Windows 10 上获得自定义窗口标题颜色,简而言之,请从此
对此(或 Eclipse IDE 窗口的任何其他自定义颜色)
按照接下来的步骤操作。
转到
C:\Windows\Resources\Themes\
。复制文件夹aero
和文件aero.theme
。如果您无法复制文件夹和文件,请右键单击两者,属性,安全性,修改,将您的用户添加到权限,并设置修改、读取和写入的权限。将文件夹
C:\Windows\Resources\Themes\aero - copy
和文件C:\Windows\Resources\Themes\aero - copy.theme
重命名为C:\Windows\Resources\Themes\custom
和C:\Windows\Resources\Themes\custom.theme
(您可以选择您想要的名称)。将
C:\Windows\Resources\Themes\custom\aero.msstyles
重命名为C:\Windows\Resources\Themes\custom.msstyles
。将
C:\Windows\Resources\Themes\custom\%your_locale%\aero.msstyles.mui
重命名为C:\Windows\Resources\Themes\custom\%your_locale%\custom.msstyles.mui
。使用记事本编辑
custom.theme
,并将VisualStyles
的PATH
变量更改为您的自定义。 msstyles
。通过双击
custom.theme
设置自定义主题(但未更改)。然后右键单击开始菜单按钮,转到参数->;自定义外观->主题并选择第二个。进入菜单颜色
,为每个应用程序选择深色模式。选择自定义颜色作为强调色并将其设置为全黑色。应用您最喜欢的深色主题(此处为 DevStyle - Darkest dark - 深黑色)到 Eclipse,瞧,您在 Windows 10 上就拥有了 Eclipse 的全深色主题!
Windows 10 users
If you want to get a custom window title color on Windows 10, in short going from this
to this (or any other custom color for the window of your Eclipse IDE)
follow the next steps.
Go to
C:\Windows\Resources\Themes\
. Duplicate the folderaero
and the fileaero.theme
. If you can't duplicate the folder and the file then right click on both, Properties, Security, Modify, add your user to Permissions, and set authorizations to modify, read and write.Rename the folder
C:\Windows\Resources\Themes\aero - copy
and the fileC:\Windows\Resources\Themes\aero - copy.theme
toC:\Windows\Resources\Themes\custom
andC:\Windows\Resources\Themes\custom.theme
(you can pick the name you want).Rename
C:\Windows\Resources\Themes\custom\aero.msstyles
toC:\Windows\Resources\Themes\custom.msstyles
.Rename
C:\Windows\Resources\Themes\custom\%your_locale%\aero.msstyles.mui
(%your_locale% is fr-FR in my case) toC:\Windows\Resources\Themes\custom\%your_locale%\custom.msstyles.mui
.Edit
custom.theme
with Notepad and change thePATH
variable ofVisualStyles
to yourcustom.msstyles
.Set your custom theme (yet unchanged) by double-clicking on
custom.theme
. Then right-click on start menu button, go to Parameters -> Customize appearance -> Themes and select the second one. Go to the menuColors
, select dark mode for every applications. Choose custom color for accent color and put it full black.Apply your favorite dark theme (here DevStyle - Darkest dark - Deep black) to Eclipse and voilà, you have a full dark theme for Eclipse on Windows 10!
对于苹果机来说,
For Mac,