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

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

问题描述

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



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



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



更新 b
$ b

阅读 m1shk4的回答它的确似乎是Eclipse从当前的gnome主题的颜色。



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



但是,所选条目的背景颜色是窗口背景颜色,但所选条目的文本



/i.stack.imgur.com/Ho5rS.pngalt =从gnome主题到eclipse的颜色映射>



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


$ b

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

解决方案

不知道是否仍然在时间,但这可能会帮助你有同样问题的所有,



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

  styleeclipse_fix
{
base [ACTIVE] = shade(0.7,#4283d3)
}

GtkTreeView样式eclipse_fix

然后只需设置Unity一个新的主题以前的主题(例如Ambiance)。这将读取上面创建的新文件,新的颜色将在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.

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.

How do I make the text of the selected entry in the context assist menu readable?

Update

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.

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.

Does anybody know how to fix or workaround this issue?

Working workaround

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:

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"

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天全站免登陆