由于颜色,Eclipse内容辅助中的选定条目无法读取 [英] The selected entry in Eclipse content assist is unreadable because of colours

查看:318
本文介绍了由于颜色,Eclipse内容辅助中的选定条目无法读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Eclipse安装中,内容辅助菜单中所选的条目几乎不可读,因为白色的颜色是白色的。

In my Eclipse installation, the selected entry in the content assist menu is almost unreadable because the colour is white on white-greyish. See image below.

我可以从eclipse首选项更改列表中未选择条目的背景和文本颜色,但所选条目始终是相同的颜色,并且始终不可读。我使用 Eclipse Color Theme RecognEyes ,但这只会影响编辑器据我所知。

I can change the background and text colour of the non-selected entries in the list from eclipse preferences, but the selected entry is always the same colour and is always unreadable. I use the Eclipse Color Theme RecognEyes, but that should only affect the editor as far as I understand.

如何使上下文辅助菜单中所选条目的文本可读?

更新

阅读 m1shk4的答案,确实似乎Eclipse从当前的gnome主题中获取它的颜色。但是它以一种奇怪的方式做到这一点。

After reading m1shk4's answer it does indeed seem that Eclipse takes it's colours from the current gnome theme. However it does this in a kind of weird way.

内容辅助窗口的背景颜色是输入框背景颜色,文本颜色是输入盒子文字颜色。这一切似乎都是合乎逻辑的。

The background colour of the content assist "window" is the input boxes background colour, and the text colour is the input boxes text colour. This all seems logical.

然而,所选条目的背景颜色是Windows背景颜色,但所选条目的文本不是背景文字颜色。

However the background colour of the selected entry is the windows background colour, but the text of the selected entry is not the background text colour.

请参阅下面的图片以进行说明。

See image below for an illustration.

有人知道如何修复或解决这个问题?

工作解决方法

Ubuntu中的默认gnome主题的问题是相当具体的。切换到另一个gnome主题解决了我的问题。

It seems this issue is rather specific with the default gnome theme in Ubuntu. Switching to another gnome theme solves the issue for me.

推荐答案

不知道是否还在时间上,但这可能会帮助所有遇到同样问题的人,

Not sure if it's still in time but this might help all of you who are having the same problem, as I had:

创建一个文件〜/ .gtkrc-2.0并将此内容添加到文件中:

Create a file ~/.gtkrc-2.0 and add this content to the file:

style "eclipse_fix" 
{ 
base[ACTIVE] = shade(0.7, "#4283d3") 
}

class "GtkTreeView" style "eclipse_fix"

然后刚刚设置Unity一个新的主题(在配置>外观)并重新设置以前的主题(例如Ambiance)。这将读取上面创建的新文件,新颜色将在eclipse中生效。

Then just set Unity a new theme (in Configuration > appearance) and set again to the previous theme (Ambiance for instance). That will read the new file created above and the new color will take effect in eclipse.

这篇关于由于颜色,Eclipse内容辅助中的选定条目无法读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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