Ubuntu 中的 Eclipse:悬停背景颜色属性在哪里?
我更改了悬停代码时可见的背景颜色(黑色)。例如,当您将鼠标悬停在某个方法上时,您会在一个框中看到其签名;我的意思是那个盒子的背景颜色。
我想重新更改它,但我在任何地方都找不到该属性。你知道它是什么属性吗?
(它应该是一个全局属性,因为其他框使用相同的背景颜色,甚至堆状态框)。
I changed the background color that is visible when hovering code (to black). For example when you hover over a method, you see its signature in a box; I mean the background color of that box.
I want to rechange it but I don't find the property anywhere. Do you know which property it is?
(It should be a global property, because other boxes use the same background color, even the heap status box).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
可能为时已晚。但我认为您需要从操作系统中更改此设置。
系统->首选项->外观->自定义->颜色->工具提示
解决了我的问题。
我使用的是 Ubuntu 10.04。
It might be too late. But I think you need to change this from your OS.
System->Preference->Appearance->Customise->Colors->Tooltips
solved my problem.
I am using Ubuntu 10.04.
首选项-> Java->编辑-> “源悬停背景”?
编辑:好的,您是指工具提示类型弹出窗口吗?显示 Javadoc 的视图的背景颜色可以在首选项“常规 -> 外观 -> 颜色和字体 -> Javadoc 视图背景”中设置,但如果您指的是工具提示类型弹出窗口,则可能必须在您的操作系统。
Preferences -> Java -> Editor -> "Source hover background"?
Edit: OK, do you mean the tooltip type popup window? The background color of the View to show Javadoc can be set in Preferences "General -> Appearance -> Colrs and Fonts -> Javadoc view background" but if you mean a tooltip type popup then you might have to set this in your OS.
在 KDE 11.10 中,系统设置 -> 应用程序外观 -> 颜色(左侧)-> 颜色(选项卡)-> 颜色设置 -> 工具顶部 -> 普通背景。我的设置为黑色,导致 Eclipse 中的黑底黑字。
In KDE 11.10, System Settings->Application Appearance->Colors(on left)->Colors(tab)->Color Set->Tooltop->Normal Background. Mine was set to black, resulting in black on black in Eclipse.
如果您想更改某个方法的悬停颜色,表明您可以单击其声明:
右侧面板中的“外观颜色选项”中有一个选项列表。选择“超链接”选项并更改其颜色。
If you want to change the colour of the hover over for a method that indicates you can click through to its declaration:
There is a list of options in 'Appearance Color Options' in the right panel. Select the 'Hyperlink' option and change its colour.
在 ubuntu(软件中心)中找到并安装 GNOME Color Chooser 应用程序并设置工具提示背景颜色(黄色)。如果您在其他工具提示上发现颜色查看问题,请将前景色设置为黑色。
In ubuntu (software center) find and Install GNOME Color Chooser application and set Tool Tip Background color (yellow). Set foreground color to black if you find color viewing problem on other tooltips.
只需转到:
并选择 GTK 以外的主题
Just go to:
and choose a Theme other than GTK
Eclipse 中没有适用于所有情况的设置。您必须按照其他几个答案的建议在操作系统级别上进行设置,并且它会根据您的操作系统和桌面环境而有所不同。
但是,在某些版本的 Ubuntu(特别是 14.04)上,到目前为止,答案中提到的方法都无法正常工作。
在这种情况下,请参阅 AskUbuntu 上的此答案,其中列出了需要编辑才能更改内置主题的工具提示前景色/背景色为操作系统范围内的黑色和白色。除此之外,我还必须编辑一个文件 (
gtk-main.css
)。需要编辑的文件有:
将工具提示背景颜色的所有实例设置为
#ffffff
(白色),将工具提示背景颜色设置为#000000
或您喜欢的任何其他颜色组合。如果您使用 Radiance(光)主题而不是默认的 Ambiance 主题,请编辑相应 Radiance 文件夹中的文件。There is no setting for this within Eclipse that works for all cases. You will have to set this on an OS level as recommended by several other answers and it will vary depending on your OS and desktop environment.
However, on some versions of Ubuntu (specifically 14.04), none of the methods mentioned in the answers so far work correctly.
In that case, refer to this this answer on AskUbuntu, which lists the files that need to be edited in order to change the tooltip foreground/background colors to black and white OS wide for the built-in themes. In addition to those, I had to edit one more file (
gtk-main.css
).The files that need to be edited are:
Set all instances of tooltip bg colors to
#ffffff
(white) and tooltip bg colors to#000000
or any other color combination you like. If you use the Radiance (light) theme instead of the default Ambiance theme edit the files in the corresponding Radiance folder.对我来说,没有任何建议的解决方案有效。
我最终将以下内容添加到 eclipse.ini:
--launcher.GTK_version
2
For me, no proposed solution did work.
I ended up adding the following to eclipse.ini:
--launcher.GTK_version
2
首选项->一般->外观->颜色和字体 -> Java->彩色标签(或这里的任何东西)
Preferences -> General -> Appearance -> Colors and Fonts -> Java -> Colored labels (or anything in here)