Eclipse 的包资源管理器背景颜色遵循 Windows 主题。我想在不改变窗口的情况下改变颜色主题。可能的?
也许是一种局部改变颜色的方法(如依赖于应用程序)?
Eclipse 的背景颜色是白色,与 Windows 的活动窗口背景颜色相同的白色。如果我更改主题的颜色,Eclipse 也会更改颜色。
我想改变这个软件的颜色而不改变整个主题(因为这样每个程序都会得到奇怪的颜色)。这可能吗?我想也许有一种方法可以将不同的 Windows 主题应用于不同的程序,或者其他什么。
我使用的是 Windows XP,经典的 Windows 主题。
Maybe a way to alter the colors locally (as in application dependant)?
A background color of eclipse is white, the same white of windows' active window background color. If I change the color on the theme, eclipse changes to the color.
I want to change this software's color without changing the whole theme (because then every program gets weird colors). Is this possible? I thought that maybe there was a way to apply different windows themes to different programs, or something.
I'm using windows XP, classic windows theme.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
安装“Eclipse 4 Chrome 主题”
http://marketplace.eclipse.org/content/eclipse-4-chrome-theme
然后你就可以定制很多Eclipse UI小部件了。
但不是你想要的,至少不是开箱即用的。
为此,您应该转到 CSS 选项卡(在 Eclipse 4 Chrome 主题中)并粘贴以下内容:
您几乎可以更改任何内容,问题是找出内容,并且事实上有些内容是您无法更改的位图(因此,如果位图是深色的,并且您设置了深色背景,您将“松开”位图)
此小部件列表可能会有所帮助,http://download.eclipse.org/rt/rap/doc/1.5/help/html/reference/theming/index.html 但是它们为您提供有关小部件名称的通用信息,而不是 Eclipse 信息(包含 ID 和所有信息),所以要小心 :-)
== 非常晚添加 ==
您需要的所有内容都集中在一处,包括指向自定义深色主题的链接:< a href="http://mihai-nita.net/2013/09/19/dark-eclipse/" rel="noreferrer">http://mihai-nita.net/2013/09/19/dark-eclipse /
截至 2013 年 9 月的 Mac 屏幕截图示例(更改文件后请务必重新启动 Eclipse):
Install the "Eclipse 4 Chrome Theme" from
http://marketplace.eclipse.org/content/eclipse-4-chrome-theme
Then you can customize a lot of the Eclipse UI widgets.
But not what you want, at least not out of the box.
For that you should go to the CSS tab (in Eclipse 4 Chrome Theme) and paste this:
You can change almost anything, the problem is finding out what, and the fact that some things are bitmaps that you can't change (so if the bitmap is dark and you set a dark background you will "loose" the bitmap)
This list of widgets might help, http://download.eclipse.org/rt/rap/doc/1.5/help/html/reference/theming/index.html but they give you generic info on the widget names, not the Eclipse info (with IDs and all), so be careful :-)
== Very late addition ==
Everything you need in one place, including links to a custom dark theme: http://mihai-nita.net/2013/09/19/dark-eclipse/
Mac Screen Shot Example as of Sept 2013 (please be sure to restart Eclipse after changing file):
只需在 Eclipse Market Place 中搜索“主题”即可。安装月出。 (应该是第一个选项)。然后转到常规,外观,单击外观,将主题更改为月出,然后就可以了。
Just search "Theme" in the Eclipse Market Place. Install Moonrise. (Should be first option). Then go to the General, appearance, Click on appearance, change theme to moonrise, Then there you go.
了解工作台的构建方式后,我确信您的请求在 Eclipse 端是不可能的。您可以为编辑器执行此操作,因为它们是 StyledText 小部件,并且您可以使用一些首选项来自定义它们。
其他视图是各种小部件,有些是树,有些是文本,有些是由各种其他小部件组成的。所有这些都是使用仅使用 Windows 主题的默认构造函数创建的。
Knowing the way the workbench is built, I'm sure your request is not possible on the Eclipse side. You can do this for the editors, because they are StyledText widgets, and you are exposed some preferences to customize these.
The other views are various widgets, some are Trees, some are Text, some are composed from various other widgets. All of them are created with the default constructor which just uses the Windows theme.
按照 github 中的说明从此处安装主题:
https://github.com/guari/eclipse-ui-theme
如果你不喜欢编辑器颜色主题,这里有一堆
http://eclipsecolorthemes.org/
两者的结合对我来说就像魅力一样!
Install the theme from here as per the instruction in the github:
https:// github.com/guari/eclipse-ui-theme
If you don't like the editor color theme, there are bunch of 'em here
http://eclipsecolorthemes.org/
Combination of both just works like charm for me!
解决方法:
打开 e4-dark_partstyle.css。我的在这里:
“C:\sts-4.20.1.RELEASE\plugins\org.eclipse.ui.themes_1.2.2300.v20230807-1354\css\dark\e4-dark_partstyle.css”
您需要更改的css部分是“MPart Tree”
覆盖现有的 .MPart 树(选择深色背景颜色,在我的示例中显示两个选定的未选定的树元素 #004640)
(这是在线颜色查看器:https://www.color-hex.com/color/ 004640)。
只需在此文件中的默认 .MPart 树定义之后添加以下 css 部分(或简单地将其添加在末尾)
在 Eclipse Preferences>General>Appearance>Colors And Fonts>Git 中,
以十进制格式为“未提交的更改(背景)”和“忽略的资源(背景)”添加相同的背景颜色(本示例中为十进制 0 70 64)
可以在 Eclipse Preferences>General>Appearance>“Colors And Fonts”中的“View and Editor Folders”中更改树字体大小。
注意:
其他一些有用的提示:
"C:\sts-3.7.3.RELEASE\plugins\org.eclipse.ui.themes_1.1.1.v20151026-1355\css\e4_default_win7.css"
添加以下行:
要添加更多 Eclipse 深色主题,请安装:
https://marketplace.eclipse.org/content/eclipse-color-theme。该插件附带了一些流行的黑暗方案。
要添加您自己的或旧的 Eclipse 主题:
修改此 Eclipse 工作区文件:
“....metadata.plugins\org.eclipse.core.runtime.settings\com.github.eclipsecolortheme.prefs”
(ColorCode 是旧的 Eclipse 模式,我从现在开始使用已不存在的 http://eclipsecolorthemes.org/,其作者用户名是 joutos)
将您的主题添加到eclipsecolortheme.prefs 文件:
通过这种方式,您还可以为 java 编辑器创建自己的颜色模式。
注意:每次启动 Eclipse 后都应该重新应用以这种方式定义的模式(不幸的是 Eclipse 团队没有实现为此插件保存的编辑器模式)。但可以从 eclipse-color-theme 插件的 Prefs/General/Appearance/Color Theme 设置轻松恢复。
快乐编码。
Work-arround:
Open e4-dark_partstyle.css. Mine is here:
"C:\sts-4.20.1.RELEASE\plugins\org.eclipse.ui.themes_1.2.2300.v20230807-1354\css\dark\e4-dark_partstyle.css"
The css part you need to change is "MPart Tree"
Overwrite existing .MPart Tree (pick a dark background color that shows both selected unselected tree elements #004640 in my sample)
( Here is the online color viewer : https://www.color-hex.com/color/004640).
Just add the bellow css section in this file, after its default .MPart Tree definition (or simply add it at the end)
In Eclipse Preferences>General>Appearance>Colors And Fonts>Git,
add the same background color for "Uncommited Change (Background)" and "Ignored Resource (Background)" in decimal format (Decimal 0 70 64 in this sample case)
Tree font size can be changed in "View and Editor Folders" from Eclipse Preferences>General>Appearance>"Colors And Fonts".
Note:
Some other useful tips:
"C:\sts-3.7.3.RELEASE\plugins\org.eclipse.ui.themes_1.1.1.v20151026-1355\css\e4_default_win7.css"
Add these lines:
To add more eclipse dark themes install:
https://marketplace.eclipse.org/content/eclipse-color-theme. This plug-in comes with some popular dark schemes.
To add your own or old eclipse theme:
Modify this eclipse workspace file:
"....metadata.plugins\org.eclipse.core.runtime.settings\com.github.eclipsecolortheme.prefs"
(ColorCode was am old eclipse schema that I used from now defunct http://eclipsecolorthemes.org/, its author user name was joutos)
Add your theme in eclipsecolortheme.prefs file:
In this way you can also create your own color schemas for java editor.
Note: a schema defined this way should be reapplied each time after you start eclipse (unfortunately eclipse team did not implement editor schemas save for this plugin). But can be reaplied easily from Prefs/General/Appearance/Color Theme settings for eclipse-color-theme plugin.
Happy Coding.
我不知道如何将每个 Eclipse 窗口更改为您的配色方案,但我至少可以帮助您更改一些编辑窗口...
打开“窗口 -> 首选项”,然后在“常规|编辑器|文本编辑器”您将找到一个允许您设置“外观颜色选项”的部分,背景颜色就是其中之一。
PS:我使用的是 Eclipse 3.6 (Helios)
I don't know of a way to change every Eclipse window to your color scheme, but I can get you at least as far as changing some of the editing windows...
Open up "Window -> Preferences", then under "General | Editors | Text Editors" you will find a section that will allow you to set the "Appearance color options", Background color is one of those options.
PS: I'm using Eclipse 3.6 (Helios)
遗憾的是,这是不可能的(这太疯狂了)。
然而,Aptana Studio(它是 Eclipse 的衍生产品)可以让您对整个 IDE 进行主题化。
Sadly, this is not possible (which is crazy).
However, Aptana Studio (which is an Eclipse derivative) lets you theme the entire IDE.
我做了一些研究,发现实际上可以改变所有颜色,但有点困难。
到目前为止我发现了两种方法。
首先,由于 Eclipse 使用操作系统主题,您可以更改操作系统背景设置,例如文件夹背景等,或者如果您使用 Windows,则只需更改整个主题,但缺点是在 Linux 和 Mac 操作系统中,所有 Windows 都是相同的颜色它也是可能的,但以不同的方式,我确实在某个地方读过它,但不记得在哪里:)
第二个为 Eclipse 创建一个特定的主题,例如 http://rogerdudler.github.io/eclipse-ui-themes/ 或任何其他主题,如 google chrome 等。
I did some research and found that actualy it is posible to change all colors, but abit harder.
there are two methods that I found so far.
first since eclipse is using OS themes, you can change your OS background settings, like folder background etc., or just change the whole theme if your using windows, but the downside is that all windowses will be same color, in linux and mac os it is also posible, but in different way, I did read it somewhere, but can't remember where :)
second creating a specific theme for eclipse, for example http://rogerdudler.github.io/eclipse-ui-themes/ or any other theme like google chrome etc.