Eclipse Luna 黑暗主题(不像图片那样完全黑暗)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24470710/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 22:05:35  来源:igfitidea点击:

Eclipse Luna dark theme (not completely dark like pictures)

eclipseeclipse-luna

提问by erginduran

I downloaded Eclipse Luna 4.4from eclipse.org. And I changed the theme on general > appearance > theme => dark. But it's not like I want.

Eclipse Luna 4.4eclipse.org下载。我改变了主题general > appearance > theme => dark。但这不是我想要的。

Which is nowenter image description here

现在是哪个在此处输入图片说明

Should be(appears in the pictures) enter image description here

应该是出现在图片中在此处输入图片说明

Moonrise uienter image description here

月出界面在此处输入图片说明

How can i do completely dark Eclipse?

我怎样才能做到完全黑暗Eclipse

采纳答案by vogella

The editor should work out of the box, we (the Eclipse platform team) fixed that before the Luna release, at least for JDT and CDT. I think what you are seeing is the "Terminal" bug, i.g., if you include the new terminal (or download a version of Luna which includes that you get this white background). This is already fixed and should be contained in the 4.4.1 release.

编辑器应该是开箱即用的,我们(Eclipse 平台团队)在 Luna 发布之前修复了这个问题,至少对于 JDT 和 CDT。我认为您看到的是“终端”错误,ig,如果您包含新终端(或下载包含您获得此白色背景的 Luna 版本)。这已经修复,应该包含在 4.4.1 版本中。

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=438175for details on the bug.

有关该错误的详细信息,请参阅https://bugs.eclipse.org/bugs/show_bug.cgi?id=438175

回答by dan carter

Ok here's what worked for me, simpler than installing a whole new colour theme. (on java 8 JRE on WinXP)

好的,这对我有用,比安装全新的颜色主题更简单。(在 WinXP 上的 java 8 JRE 上)

Preferences -> General -> Editors -> Text Editors: Background colour

首选项 -> 常规 -> 编辑器 -> 文本编辑器:背景色

deselect 'system default' and choose pure black

取消选择“系统默认”并选择纯黑色

Now go to 'current line highlight' and make it you favourite shade of grey. RGB 60/60/60 works for me.

现在转到“当前行突出显示”并使其成为您最喜欢的灰色阴影。RGB 60/60/60 适合我。

回答by Ellery

You have changed the UI but the not the colors of your editor. Check out http://eclipsecolorthemes.org/and install the color theme of your choice.

您已更改 UI,但未更改编辑器的颜色。查看http://eclipsecolorthemes.org/并安装您选择的颜色主题。

回答by Daniel Centore

The correct thing to do in Ubuntu is to set LIBOVERLAY_SCROLLBAR=1 . My entire /usr/share/applications/eclipse.desktop file:

在 Ubuntu 中正确的做法是设置 LIBOVERLAY_SCROLLBAR=1 。我的整个 /usr/share/applications/eclipse.desktop 文件:

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=env LIBOVERLAY_SCROLLBAR=1 /opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

The important part here is the env LIBOVERLAY_SCROLLBAR=1which tells Ubuntu that it's alright to use the pretty orange bars. Also note that my eclipse install location is /opt/eclipse/eclipse; it may be different for you depending on how you installed. Use the path from your existing .desktop file.

这里的重要部分是env LIBOVERLAY_SCROLLBAR=1,它告诉 Ubuntu 可以使用漂亮的橙色条。另请注意,我的 eclipse 安装位置是 /opt/eclipse/eclipse;根据您的安装方式,它可能会有所不同。使用现有 .desktop 文件中的路径。

回答by plain_text

I tried many SO answers related to Dark Theme in Eclipse on my Debian Stable(Jessie)\Gnome shell box, but none worked well. The key thing that helped in my case was setting SWT3_GTK=1 and running eclipse executable from shell script. I.e. create a script like this in the same dir where eclipse executable resides:

我在我的 Debian Stable(Jessie)\Gnome shell 盒子上尝试了许多与 Eclipse 中的黑暗主题相关的 SO 答案,但没有一个效果很好。对我来说有帮助的关键是设置 SWT3_GTK=1 并从 shell 脚本运行 eclipse 可执行文件。即在 eclipse 可执行文件所在的同一个目录中创建一个这样的脚本:

#!/bin/sh
export SWT_GTK3=1
./eclipse

You should also install Eclipse color theme in order to choose Dark theme. "Dark" or "Moonrise" themes work well for me. In addition to that install gnome-tweak-tool and switch on Global dark theme. You may also want to install Adwaita theme.

您还应该安装 Eclipse 颜色主题以选择深色主题。“黑暗”或“月出”主题对我来说效果很好。除此之外,安装 gnome-tweak-tool 并打开全局黑暗主题。您可能还想安装 Adwaita 主题。

Restart Gnome shell and Eclipse to make sure your settings are applied.

重新启动 Gnome shell 和 Eclipse 以确保应用您的设置。

回答by Furrald

I tried several of the answers listed here and still had a white background in several views like package explorer, outline, and problems. The solution for me was to change to a dark theme on my OS (fedora 18) rather than changing my UI theme or editor preferences.

我尝试了这里列出的几个答案,但在包资源管理器、大纲和问题等几个视图中仍然有白色背景。我的解决方案是在我的操作系统 (fedora 18) 上更改为深色主题,而不是更改我的 UI 主题或编辑器首选项。