适用于 Java 的 Eclipse IDE - 全深色主题

发布于 2024-10-18 00:24:50 字数 919 浏览 4 评论 0 原文

有什么办法可以让Eclipse彻底变成黑暗IDE吗? 这是我要问的图片

我不介意花 1 小时的时间来做这样的事情:D

编辑:

正如 Konstantin Komissarchik 所说,我必须修改我的操作系统颜色。这可以通过向 Windows 添加自定义视觉样式来实现。借助 自定义主题Windows 7 的自定义视觉样式(我稍微改变了一点),我的 Eclipse 如下图所示: Screenshot of my Eclipse

2019 年更新:

最新版本的 Eclipse 现在带有深色主题。只需转到 Window ->首选项->一般->外观->主题并根据您的操作系统选择“深色”或其他合适的版本。

Eclipse 默认深色theme

当然,您仍然可以为 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:
Screenshot of my Eclipse

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.

Eclipse default dark theme

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(21

怕倦 2024-10-25 00:24:51

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

https://raw.github.com/guari/eclipse-ui-theme/master/com.github.eclipseuitheme.themes/screenshot/screenshot-ubuntu_v0.8.2.png

静谧 2024-10-25 00:24:51

2016 年 8 月更新:

Tejas Padliya 添加了在评论中

深色主题与 Windows 10 的 Eclipse 4.5 及以上版本兼容。
黑色背景上不再有黑色文本


2014 年 6 月更新:

正如提到的 din "深色主题,顶级 Eclipse Luna 功能 #5", Eclipse 4.4 (Luna ) 包含一个深色主题(请参阅 informatik01评论):

http://eclipsesource.com/blogs/wp-content/uploads/2014/06/darklinux.png

当 Eclipse 3.0 于 2004 年发布时,它为工作台带来了新的外观。十年后的现在,一个全新的黑暗主题即将推出。

主题不仅仅扩展到小部件。语法突出显示也得到了改进,以利用新外观。

新内容页面提到:

引入了新的暗窗口主题。这个流行的社区主题展示了底层 Eclipse 4 样式引擎的强大功能。
您可以从常规> 启用它。外观首选项页面
插件可以为此主题提供扩展,以设计自己的特定视图和编辑器以匹配窗口主题。


2013 年 4 月更新:

根据 Lennart 中的说法,下面的解决方案似乎不适用于 Eclipse Juno 4.2 和 Windows 8 评论

一种(大部分)有效的解决方案是 Eclipse Chrome 主题< /a> (兼容 Juno 4.2 甚至 Kepler 4.3),来自 GitHub 项目 eclipse -主题,作者:Jeeeyul Lee

这篇文章提到:

第一个是更改编辑器窗口内内容的外观
这可以通过 Eclipse Color Theme 插件 (http://eclipsecolorthemes.org/) 来完成。我最喜欢的编辑器主题是带有 Monaco 字体的 Vibrant Ink。他们很好地解释了如何安装主题(http://eclipsecolorthemes.org/?view=how -to-use),尽管您通过默认插件安装获得了一组精美的深色主题,并且可能不需要再返回他们的网站。在这里获取插件。

第二阶段是使 UI 的镶边变暗,即所有小部件和菜单以及子窗口画布之外的所有内容
该插件为您提供了 chrome 配色方案的 GUI 编辑器: https://github.com/jeeeyul/eclipse -主题/
如果你想要一个深色的,请继续点击,直到日食变暗。

完成后,一些 GUI 表面区域将通过系统主题显示,如本文顶部所述。
您可以安装预先烘焙的 Dark Juno 主题,而不是使用该编辑器。
安装是手动的。
首先从这里下载: https://github.com/eclipse-color-主题/eclipse-ui-themes
必须将其复制到您的 eclipse dropins 文件夹中。它位于 eclipse 可执行文件旁边,而不是在您的工作区或类似的地方。就我而言,执行复制的命令是:

cp ./plugins/com.github.eclipsecolortheme.themes_1.0.0.201207121019.jar /usr/lib/eclipse/dropins/

不过,您可以从任何目录运行 eclipse,因此哪个 eclipse 会告诉您它应该去哪里。
重新启动 eclipse,您应该在 Preferences::General::Appearance 下找到一个 Dark Juno 选项。它是一种漂亮的中性灰色,带有一些渐变,是一个非常好的选择。

~~~~~~~~~~~~~~

2012 年 12 月更新(20 个月后):

博客文章“金明健:Eclipse 深色主题" 提到了这个GitHub 存储库“eclipse 主题 - darker

在此输入图像描述

最大的乐趣在于,通过使用 Eclipse4 平台技术(如 dependency )来最小化代码注射
再次证明,简洁的代码和高级的功能可以通过外部形式(如库、框架)进行贡献或扩展来实现。
仅仅为了这种目的不需要新的语言。


2012 年 7 月更新(15 个月后):

我见过一个! (即 Eclipse 的全暗主题),正如 Lars Vogel 在“Eclipse 4 很漂亮 – 创建您自己的Eclipse 4 主题":

Eclipse 全黑主题

如果你想玩一下它,你只需要编写一个插件,创建一个CSS文件并使用org.eclipse.e4.ui.css.swt.theme 扩展点指向您的文件。
如果导出插件,请将其放置在 Eclipse 安装的“dropins”文件夹中,这样您的样式就可用了。

pixeldude 在发布的评论中提到GitHub 上的“Dark Juno”

科莫达夫 提到您并不总是需要插件:请参阅“Ubuntu + Eclipse 4.2 - 深色主题 - 如何使侧边栏背景变暗?”作为示例,基于 gtkrc 资源。


原始答案:2011 年 3 月

请注意,e4 可以实现全深色主题。
(请参阅 带有 e4 的动态 csse4 一周 – e4 主题):

深色主题扩展

完整深色主题

与此同时,仅适用于编辑人员(这不是您想要的,但仍然值得一提):

www.eclipsecolorthemes.org

“用超级棒的颜色主题让你的 Eclipse 焕然一新!”

编辑主题

Update August 2016:

Tejas Padliya adds in the comments:

Dark theme works well with Eclipse 4.5 onward with Windows 10.
No more black text on black background


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):

http://eclipsesource.com/blogs/wp-content/uploads/2014/06/darklinux.png

When Eclipse 3.0 shipped in 2004 it brought a new look to the workbench. Now, 10 years later, an entirely new Dark Theme is launching.

The theme extends to more than just the Widgets. Syntax highlighting has also been improved to take advantage of the new look.

The What's new page mentions:

A new dark window theme has been introduced. This popular community theme demonstrates the power of the underlying Eclipse 4 styling engine.
You can enable it from the General > Appearance preference page.
Plug-ins can contribute extensions to this theme to style their own specific views and editors to match the window theme.


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:

The first is to change the appearance of what is inside the editor windows.
That can be done with the Eclipse Colour Theme plugin (http://eclipsecolorthemes.org/). My favourite editor theme is Vibrant Ink with the Monaco font. They explain how to install their themes very well (http://eclipsecolorthemes.org/?view=how-to-use), although you get a fine set of dark themes with the default plugin install and may not need to come back to their website for any more. Get the plugin here.

The second stage is darkening the chrome of the UI, which is all the widgets and menus and everything outside of the child window canvases.
This plugin gives you a GUI editor for the chrome colour scheme: https://github.com/jeeeyul/eclipse-themes/.
If you want a dark one, go ahead and click away until eclipse is dark.

Once you are done, some GUI surface area will show through the system theme as mentioned at the top of this post.
Rather than using that editor, you could install the pre-baked Dark Juno theme instead.
The install is manual.
Start by downloading it from here: https://github.com/eclipse-color-theme/eclipse-ui-themes.
It has to be copied into your eclipse dropins folder. This lives next to the eclipse executable, not in your workspace or someplace like that. In my case the command to do the copy was:

cp ./plugins/com.github.eclipsecolortheme.themes_1.0.0.201207121019.jar /usr/lib/eclipse/dropins/

You could be running eclipse from any directory though, so which eclipse will tell you where it should go.
Restart eclipse and you should find a Dark Juno option under Preferences::General::Appearance. It is a nice neutral grey with some gradients and is a very good option.

~~~~~~~~~~~~~~

Update December 2012 (20 months later):

The blog post "Jin Mingjian: Eclipse Darker Theme" mentions this GitHub repo "eclipse themes - darker":

enter image description here

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.


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":

Eclipse fully dark 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.

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):

dark theme extension

full dark theme

In the meantime, only for editors though (which isn't what you want but still merit to be mentioned):

www.eclipsecolorthemes.org:

"Fresh up your Eclipse with super-awesome color themes!"

themes for editors

故事灯 2024-10-25 00:24:51

更新 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:
enter image description here


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..)

梦旅人picnic 2024-10-25 00:24:51

有一个全新的免费插件,它非常黑暗,支持 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:

enter image description here

风吹过旳痕迹 2024-10-25 00:24:51

这是我的 Chrome 主题插件的 Black Eclipse 自定义 CSS。可与 eclipse 4.2 和 4.3 一起使用。主要目标是让它在 ubuntu 中看起来更漂亮,除了让它变得“更暗”。

注意:在 Windows 系统上可能工作也可能不工作,仅在 ubuntu 上进行检查。

必需:Chrome 主题和颜色主题插件

  1. 安装上述插件。它们可以在 eclipse 市场中找到。

  2. 在颜色主题中安装我的 Gedit Oblivion 主题变体并激活它。 (http://eclipsecolorthemes.org/?view=theme&id=12544)

  3. 在 Chrome 主题的 css 编辑器中插入自定义 css。我花了几个小时用 CSS Spy 找出所有相关信息,使 eclipse 变黑并使这个文件尽可能小。还有一个 .epf 文件用于您应该导入的 Chrome 主题插件首选项。
    您可以从我的保管箱中获取它:https://www.dropbox.com/sh/ye5tosl3cjhx96d /yL-_Y5j1PE

最后你的日食将如下所示:
在 ubuntu 中运行的 Black Eclipse

玩得开心!

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

  1. Install those mentioned plugins. They can be found in the eclipse marketplace.

  2. Install my variant of Gedit Oblivion Theme in Color Theme and activate it. (http://eclipsecolorthemes.org/?view=theme&id=12544)

  3. 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:
Black Eclipse running in ubuntu

Have Fun!

始于初秋 2024-10-25 00:24:51
  • 帮助 → 安装新软件。
  • 输入 Eclipse 颜色主题插件 URL: http://eclipse-color-theme.github.com/update< /a>
  • 安装 Eclipse 颜色主题插件。
  • 重新启动 Eclipse。
  • 转到窗口→首选项→常规→外观→颜色主题
  • 我喜欢Havenjark默认的颜色主题。 Eclipse 颜色主题插件加载了 24 个默认颜色主题和导入主题的选项。
    在此处输入图像描述
  • Help → Install New Software.
  • Enter Eclipse Color Theme Plugin URL: http://eclipse-color-theme.github.com/update
  • Install Eclipse Color Theme Plugin.
  • Restart Eclipse.
  • Goto Window → Preferences → General → Appearance → Color Theme
  • I like the Havenjark default Color Theme. Eclipse Color Theme Plugin comes loaded with 24 default Color Themes and option to Import a theme.
    enter image description here
诗酒趁年少 2024-10-25 00:24:51

安装较新版本的 Eclipse(Luna Release (4.4.0) 或更高版本),它默认包含一个很棒的 Dark 主题。

这是屏幕截图:

Eclipse Luna 4.4.0 深色主题

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 Luna 4.4.0 Dark Theme

如梦 2024-10-25 00:24:51

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.

再可℃爱ぅ一点好了 2024-10-25 00:24:51

很简单。只需下载此文件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 choose Dark Juno theme on Dropdown. Thats it. Restart Your Eclips.

For More Info watch this video tutorial

猫弦 2024-10-25 00:24:51

如果深色主题的目的是让您的眼睛舒适,您可以启用操作系统的高对比度设置。例如,在 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

enter image description here

毁我热情 2024-10-25 00:24:51

如果您在 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.

一抹微笑 2024-10-25 00:24:51

我已经基于流行的 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!

数理化全能战士 2024-10-25 00:24:51

对于 Visual Studio 2013 深色主题:

合并 来自 eclipsecolorthemes.org 的此首选项文件( .epf)以及 Eclipse Luna 的内置深色主题。我能够通过以下步骤做到这一点:

  1. 窗口>一般>外观>主题:黑暗。
  2. 文件>导入>一般>首选项>浏览:theme-25999.epf>结束。

在 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:

  1. Window > General > Appearance > Theme: Dark.
  2. File > Import > General > Preferences > Browse: theme-25999.epf > Finish.

An example search for more VS Dark Themes on eclipsecolorthemes.org

羁拥 2024-10-25 00:24:51

我花了几个小时寻找一个好的解决方案来使我的 eclipse UI 变暗,我终于找到了一种方法。我正在使用Fedora 18 和 Eclipse for PHP Developers (PDT v3.0.2)。

最好的解决方案是下载 DeLorean 黑暗主题,然后在 Gnome Shell 中启用它。

安装过程:

  1. http://browse.deviantart.com/art/DeLorean-Dark-Theme-3-6-vs-2-56-328859335
  2. 解压存档,然后复制 delorean-dark- theme-3.6 文件夹到 /usr/share/themes/
  3. 打开 Gnome Tweak Tool 从 Theme > 启用新安装的主题Gtk+ 主题(如果未安装 gnome-tweak-tool,请使用 yum install gnome-tweak-tool 安装它,然后按 F2 或从终端启动它)
  4. 按 F2 重新加载 Gnome Shell,然后输入“r”
  5. 打开 Eclipse PDT 并享受新外观
  6. 我强烈建议从eclipsecolorthemes [DOT] org中选择一个不错的代码着色主题我正在使用Oblivion的自定义版本 主题由 Roger Dudler

设计如下: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:

  1. Download DeLorean-Dark-Theme-3.6 vs.2.56 from http://browse.deviantart.com/art/DeLorean-Dark-Theme-3-6-vs-2-56-328859335
  2. Unzip the archive, and copy the delorean-dark-theme-3.6 folder to /usr/share/themes/
  3. Open Gnome Tweak Tool Enable the freshly installed theme from Theme > Gtk+ Theme (If gnome-tweak-tool isn't installed, install it using yum install gnome-tweak-tool, then F2 or launch it from the terminal)
  4. Reload Gnome Shell by hitting F2, then typing 'r'
  5. Open Eclipse PDT and enjoy the new look
  6. I highly recommend to pick one of the nice code coloring themes from eclipsecolorthemes [DOT] org I am using a custom version of the Oblivion theme by Roger Dudler

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

鹿港巷口少年归 2024-10-25 00:24:51

这个问题有一个非常简单和容易的解决方案)只需几个简单的步骤即可将丑陋的 Eclipse 变成完全黑暗的野兽)

全黑 Eclipse 的示例

不需要繁重的工作或手动编辑文件!

至少这适用于 Ubuntu 14.04 上的最后一个 Eclipse (Mars 2)(尽管我认为这样的过程应该适用于所有操作系统)

所以:

  1. 下载一些深色 GTK 主题

    例如,您可以从 http://www.noobslab.com/ 获取一些内容

  2. 要应用新安装的主题,您将需要 Unity 调整工具

    sudo apt-get install unity-tweak-tool
    
    sudo apt-get install unity-webapps-service
    
  3. 启动 Unity 调整 - 外观 - 主题 - 应用你的深色主题

  4. 打开 Eclipse;在首选项中选择 GTK 主题

  5. 在 Eclipse 中,打开 Marketplace 并安装颜色主题 - 您将能够更改编辑器背景并突出显示颜色以匹配您的深色主题

  6. 关闭 Eclipse

  7. 转到 Eclipe 文件夹:

    ../Eclipse/plugins/org.eclipse.ui.themes_WHATEVER_NUMBER_HERE/

    在该文件夹中重命名或删除“css”文件夹

  8. 打开并享受完全黑暗的 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:

  1. Download some dark GTK theme

    for example, you can grab few from http://www.noobslab.com/

  2. To apply your newly installed theme you will need Unity tweak tool

    sudo apt-get install unity-tweak-tool
    
    sudo apt-get install unity-webapps-service
    
  3. Launch Unity tweak - Appearance - Theme - apply your dark theme

  4. Open Eclipse; in preferences choose GTK theme

  5. In Eclipse, open Marketplace and install Color Theme - you will be able to change editor background and highlight colors to match your dark theme

  6. Close Eclipse

  7. Go to Eclipe folder:

    ../Eclipse/plugins/org.eclipse.ui.themes_WHATEVER_NUMBER_HERE/

    in that folder rename or delete 'css' folder

  8. Open and enjoy fully darked Eclipse!

PS: install a few dark themes and try which will suit you more

夜声 2024-10-25 00:24:51

相反,如果找到夜间主题,我找到了一个实用程序,可以将我的整个桌面置于夜间模式NegativeScreen

eclipse ide夜间模式

我使用下面调整后的“Smart Inversion Alt 2”矩阵,其中黑色稍微变亮。

Smart Inversion Alt 2b (danielsokolowski)=
{  0.390, -0.620, -0.620,  0.000,  0.000 }
{ -1.210, -0.220, -1.220,  0.000,  0.000 }
{ -0.160, -0.160,  0.840,  0.000,  0.000 }
{  0.075,  0.075,  0.075,  1.000,  0.000 }
{  1,  1,  1,  0.000,  1.000 }

Instead if finding a night theme I found a utility that puts my entire desktop into night mode NegativeScreen.

eclipse ide night mode

I use the below adjusted 'Smart Inversion Alt 2' matrix where the black is lightened a little.

Smart Inversion Alt 2b (danielsokolowski)=
{  0.390, -0.620, -0.620,  0.000,  0.000 }
{ -1.210, -0.220, -1.220,  0.000,  0.000 }
{ -0.160, -0.160,  0.840,  0.000,  0.000 }
{  0.075,  0.075,  0.075,  1.000,  0.000 }
{  1,  1,  1,  0.000,  1.000 }
硪扪都還晓 2024-10-25 00:24:51

有一个新插件为 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 :)

蝶舞 2024-10-25 00:24:51

您可以使用上面的这个很棒的主题,并仅为来自此站点的编辑器添加预定义主题:

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 :)

樱&纷飞 2024-10-25 00:24:51

最黑暗的黑暗是最好的黑暗主题。
它还带有不同的工具栏图标形状。这是链接:

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.

佼人 2024-10-25 00:24:51

Windows 10 用户

如果您想在 Windows 10 上获得自定义窗口标题颜色,简而言之,请从此

eclipse - 白色窗口标题

对此(或 Eclipse IDE 窗口的任何其他自定义颜色)

eclipse - 全黑

按照接下来的步骤操作。

转到C:\Windows\Resources\Themes\。复制文件夹 aero 和文件 aero.theme。如果您无法复制文件夹和文件,请右键单击两者,属性,安全性,修改,将您的用户添加到权限,并设置修改、读取和写入的权限。

将文件夹 C:\Windows\Resources\Themes\aero - copy 和文件 C:\Windows\Resources\Themes\aero - copy.theme 重命名为 C:\Windows\Resources\Themes\customC:\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

自定义主题- locale 文件夹

使用记事本编辑 custom.theme,并将 VisualStylesPATH 变量更改为您的 自定义。 msstyles

更改主题path

通过双击 custom.theme 设置自定义主题(但未更改)。然后右键单击开始菜单按钮,转到参数->;自定义外观->主题并选择第二个。进入菜单颜色,为每个应用程序选择深色模式。选择自定义颜色作为强调色并将其​​设置为全黑色。

开始菜单- 参数

选择自定义主题

更改自定义主题

自定义强调色

自定义强调颜色设置为黑色

应用您最喜欢的深色主题(此处为 DevStyle - Darkest dark - 深黑色)到 Eclipse,瞧,您在 Windows 10 上就拥有了 Eclipse 的全深色主题!

eclipse -全黑

Windows 10 users

If you want to get a custom window title color on Windows 10, in short going from this

eclipse - white window title

to this (or any other custom color for the window of your Eclipse IDE)

eclipse - full black

follow the next steps.

Go to C:\Windows\Resources\Themes\. Duplicate the folder aero and the file aero.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 file C:\Windows\Resources\Themes\aero - copy.theme to C:\Windows\Resources\Themes\custom and C:\Windows\Resources\Themes\custom.theme (you can pick the name you want).

themes folder

Rename C:\Windows\Resources\Themes\custom\aero.msstyles to C:\Windows\Resources\Themes\custom.msstyles.

custom theme folder

Rename C:\Windows\Resources\Themes\custom\%your_locale%\aero.msstyles.mui (%your_locale% is fr-FR in my case) to C:\Windows\Resources\Themes\custom\%your_locale%\custom.msstyles.mui.

custom theme - locale folder

Edit custom.theme with Notepad and change the PATH variable of VisualStyles to your custom.msstyles.

changing theme path

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 menu Colors, select dark mode for every applications. Choose custom color for accent color and put it full black.

start menu - parameters

choosing custom theme

changin custom theme

custom accent color

custom accent color set to 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!

eclipse - full black

葵雨 2024-10-25 00:24:51

对于苹果机来说,

日食>首选项>外观>主题

For Mac,

Eclipse > Preferences > Appearance > Theme

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文