如何获取Eclipse Luna中的旧色主题? [英] How to get the old color theme in Eclipse Luna?

查看:225
本文介绍了如何获取Eclipse Luna中的旧色主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Eclipse Luna,由于某些原因,我们已经删除了我熟悉的默认浅色主题。

I have installed Eclipse Luna and for some reason they have removed the default light colored theme that I'm familiar with.

他们提供了4个主题选项,全部都是黑色的:

They've provided 4 theme options all of which are black:

我很惊讶,他们放弃了旧的主题。至少应该保留作为选项。

I'm surprised that they dropped the old theme. Atleast it should have been kept as an option.

问题:


  • 如果我不需要依靠主题插件,就可以将旧的主题重新放回来。

  • 如果我必须使用一个插件,如 eclipsecolorthemes 哪个主题最接近eclipse默认值?

  • How do I get the old theme back without relying on theme plug-ins?
  • If I have to resort to a plug-in like eclipsecolorthemes which theme corresponds most closely to the eclipse default?

我有code>版本:Luna RC1版本(4.4.0RC1)Build id:20140522-1310 for Linux

I have Version: Luna RC1 Release (4.4.0RC1) Build id: 20140522-1310 for Linux

编辑: / strong>

我已经测试过,同样的问题发生在:

I have tested and the same problem happens in:


  1. Luna RC2

  2. Luna RC3

  3. ggts-3.6.0.M1


推荐答案

您必须从窗口小部件颜色问题(Eclipse主题)中区分语法颜色问题(Eclipse首选项)。
我认为你正在处理第二个。

You have to distinguish a syntax colors issue (Eclipse preferences) from a widget colors issue (Eclipse theme). I think you're dealing with the second one.

你正在使用一个黑暗的OS主题,Eclipse是基​​于SWT它使用系统小部件。如果Eclipse(CSS)主题没有为每个小部件初始化一个明亮的颜色,那么它将使用您的操作系统主题定义的颜色。
只有 Dark 主题尝试为每个小部件设置一个深色方案; 经典默认 GTK 等主题总是假设用户正在使用明亮的操作系统主题,以便他们不为每个小部件定义特定的颜色(而且他们从未这样做)。

You are using a dark OS theme, Eclipse is build on SWT that uses system widget. If an Eclipse (CSS) theme does not init a bright color for each widget then for it is used the color defined by your OS theme. Only the Dark theme tries to set a dark color scheme for each widget; the Classic, Default, GTK etc. themes have always supposed that the user is using a bright OS theme so they don't define specific colors for each widget (and they never did it).

而且Eclipse 4.4+默认情况下切换到GTK3,与之前的基于GTK2的Eclipse版本相比,GTK3上的SWT移植仍然存在一些渲染问题和一些更多的局限性(您可以注意到,特别是在切换到Eclipse 黑暗主题)。

Moreover Eclipse 4.4+ switched to GTK3 by default, the SWT porting on GTK3 has still some rendering issues and some more limitations compared to the previous Eclipse versions based on GTK2 (you can notice them especially when switching to the Eclipse Dark theme).



假设使用您当前的配置和Eclipse 4.3-具有所需的外观,解决方法可以通过GTK2兼容模式运行Eclipse用这样的脚本开始:


Supposing that with your current configuration and Eclipse 4.3- you have the desired appearance, a workaround can be running Eclipse in GTK2-compatible mode by starting it with a script like this:

#!/bin/bash
export SWT_GTK3=0
./eclipse



如果这不能解决你的问题,你有通过添加一堆规则来编辑 \eclipse\plugins\org.eclipse.ui.themes_ * version * \css\ 中所需的CSS主题将每个相关小部件初始化为一个明亮的配色方案。


If this doesn't solve your issue, you have to edit the desired CSS theme in \eclipse\plugins\org.eclipse.ui.themes_*version*\css\ by adding a bunch of rules to init each relevant widget to a bright color scheme.

这篇关于如何获取Eclipse Luna中的旧色主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆