Eclipse将鼠标悬停在关键字上时,更改弹出文本背景颜色 [英] Eclipse, change popup text background color when hovering the mouse on a keyword

查看:296
本文介绍了Eclipse将鼠标悬停在关键字上时,更改弹出文本背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ubuntu 10.04.1新主题默认情况下,所有的Windows背景颜色设置为黑色。¥
我不想改变。

Ubuntu 10.04.1 new theme has by default all windows background colors set to black.
I don't want to change that.

在Eclipse中,由于10.04.1,界面没有太大的变化 - 除了一个令人讨厌的事情:_
当鼠标悬停在一个关键字上时 - 一个变量 - 类型(..) 。)
自10.04.1以来的问题是文本是黑色的颜色,而背景是黑色

In Eclipse, the interface didn't change much due to 10.04.1 - except for one annoying thing:
when the mouse hovers over a keyword - a variable for instance - the type (...) of that keyword is displayed in a small pop-up window.
The problem since 10.04.1, is that the text is in black color while the background is also black.

有没有办法在Eclipse中更改背景颜色

Is there a way to change that background color in Eclipse?

推荐答案

所有各种弹出式背景颜色均以首选项> Java>编辑器(类似于中的完成列表弹出窗口bug 133615 )。

其他背景颜色在常规>外观>颜色和字体(在过滤器字段中键入 background

All the various popup background color are managed in Preferences > Java > Editor (like the one for the completion list popup in bug 133615).
Other background colors are in General > Appearance > Colors and Font (type background in the filter field).

但是类型弹出窗口似乎坚持系统颜色,这就是为什么你看到黑色背景。

如果真的是这样,那么值得报告为一个bug。

But the type popup seems to stick to a system color, which is why you see a black background.
If this is truly the case, it is worth reporting as a bug.

OP确认实际上不是这样:

The OP confirms it is not the case, actually:


它在 首选项> C / C ++>编辑>源鼠标悬停背景 ,并且不得不取消选中系统默认值(因为所示颜色为浅灰色!)

It was in Preferences > C/C++ > Editor > Source hover background, and had to untick the "System default" (because the shown color was light-gray!)

$ b $在Ubuntu 12.04+上发布如何在Unity中更改tooltip背景颜色?还提到:


On Ubuntu 12.04+, the post "How to change tooltip background color in Unity?" also mentions:

/usr/share/themes/Ambiance/gtk-2.0/gtkrc

最近的帖子(十二月2012) Eclipse Papercut#10 - Ubuntu上的Eclipse:在悬停中修复黑色背景颜色(从 Lars Vogel )确认:

The recent post (December 2012) "Eclipse Papercut #10 – Eclipse on Ubuntu: Fixing the black background color in hover" (from Lars Vogel) confirms:


相关属性为 tooltip_fg_color tooltip_bg_color

只是搜索这些值,位置有时在版本之间更改,目前它们位于文件的最顶端。

The relevant properties are tooltip_fg_color and tooltip_bg_color.
Just search for these values, the position changes sometimes between releases, currently they are at the very top of the file.

以下设置使用更合理的颜色。

The following setting uses more reasonable colors.



tooltip_fg_color:#000000
tooltip_bg_color:#f5f5c5






pointhi 添加在评论中


我还必须设置环境变量 code> SWT_GTK3 = 0 ,然后启动eclipse才能使其工作。

I also had to set the environment variable SWT_GTK3=0 before starting eclipse to get it working.

这篇关于Eclipse将鼠标悬停在关键字上时,更改弹出文本背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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