Windows 的 Eclipse 深色主题:如何将滚动条和标题栏的颜色更改为深色?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26813811/
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
Eclipse dark theme for windows: how to change the color of scroll bars and title bars to dark?
提问by Solace
Is there a dark theme for eclipse for windows which changes the color of scroll bars and menu bar to dark as well?
是否有用于窗口的 eclipse 的深色主题,它会将滚动条和菜单栏的颜色也更改为深色?
In this post, we can see pretty themes but those are for Mac OS. For Windows, the dark themes look pretty ugly, because of those white scroll bars and title bars etc. really!
在这篇文章中,我们可以看到漂亮的主题,但这些主题是针对 Mac OS 的。对于 Windows,黑暗主题看起来非常难看,因为那些白色的滚动条和标题栏等等。真的!
采纳答案by Jean Marcos
There is a dark theme that also changes the color of the scroll bars.
有一个深色主题也会改变滚动条的颜色。
Darkest Dark Theme
最黑暗的黑暗主题
https://marketplace.eclipse.org/content/darkest-dark-theme
https://marketplace.eclipse.org/content/darkest-dark-theme
In addition it said it provides nicer icons than the common ones of dark themes.
此外,它表示它提供了比常见的深色主题更好的图标。
Note that it worked fine on Windows 10 64bits with Neon.3 Release (4.6.3). I do not know if it works well in other versions.
请注意,它在带有 Neon.3 Release (4.6.3) 的 Windows 10 64 位上运行良好。我不知道它在其他版本中是否有效。
-
——
The Syntax highlighting I am using is not the native of the theme, but the RainbowDrops.epf. Download RainbowDrops.epf (right click on the link and select Save link as...) and import it with Eclipse built-in Preferences Import (go to File > Import... then select General > Preferences).
我使用的语法高亮不是主题的本机,而是RainbowDrops.epf。下载 RainbowDrops.epf(右键单击链接并选择将链接另存为...)并使用 Eclipse 内置的首选项导入(转到文件 > 导入...然后选择常规 > 首选项)将其导入。
回答by Inês Rodrigues
I think that the scrollbars are native OS and we can't change it. As for the console you can edit it this way:
我认为滚动条是本机操作系统,我们无法更改它。至于控制台,您可以通过以下方式对其进行编辑:
Preferences > General > Editors > Text Editors: Background colour
首选项 > 常规 > 编辑器 > 文本编辑器:背景颜色
Then just choose the colors you want.
然后只需选择您想要的颜色。
Hope this information was helpful. Have a nice day.
希望这些信息有帮助。祝你今天过得愉快。
回答by Brian Chandler
I understand the original question was for Windows, but this is seen on Linux also and was frustrating to figure out so posting here.
我知道最初的问题是针对 Windows 的,但在 Linux 上也可以看到这一点,并且在这里发帖很令人沮丧。
If having to use the SWT_GTK3=0 workaround on Linux for Eclipse, then it will use Gtk2 and you will see the same problem Solace described.
如果必须在 Linux 上为 Eclipse 使用 SWT_GTK3=0 解决方法,那么它将使用 Gtk2,您将看到 Solace 描述的相同问题。
Here is the Gtk2 theme that worked well for me: https://github.com/horst3180/Vertex-themeBest is to pull down the git repo to '~/opt/vertex-theme', checkout stable, and then install it by hand. (Don't delete directory so can uninstall later if needed. That's why I say to put it in your user's opt directory.) The .deb version didn't have an updated key and now apt whines about that. *glare
这是对我来说效果很好的 Gtk2 主题:https: //github.com/horst3180/Vertex-theme最好是将 git repo 下拉到“~/opt/vertex-theme”,checkout stable,然后安装它用手。(不要删除目录,以便以后可以在需要时卸载。这就是为什么我说将它放在用户的 opt 目录中。).deb 版本没有更新的密钥,现在很容易抱怨。*强光
After install then run 'gtk-chtheme' (the Gtk2 theme changer) and you can select it there. That will fix both the bright menu bar at the top and scrollbars in Linux. If Gtk3 works for you with Eclipse, then you probably won't see the theme problem.
安装后运行“gtk-chtheme”(Gtk2 主题转换器),你可以在那里选择它。这将修复顶部的明亮菜单栏和 Linux 中的滚动条。如果 Gtk3 与 Eclipse 配合使用,那么您可能不会看到主题问题。