linux上的eclipse-mars:工具提示中的黑色背景颜色 [英] eclipse-mars on linux: black background color in Tooltip's

查看:116
本文介绍了linux上的eclipse-mars:工具提示中的黑色背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有一些技巧可以更改linux下eclipse中工具提示窗口的背景颜色(这些窗口在某些Linux发行版上默认为黑色背景...).我尝试过的一些事情是:

I know there are several tips for changing the background color of tooltip windows in eclipse under linux (these windows have on some linux distribution per default a black background ...). Some of the things I have tried are:

https://askubuntu.com/questions/70599/how更改工具提示背景颜色在单位中 https://askubuntu.com/questions/1620/how-to-在日食中修复无法读取的工具提示 https://askubuntu.com/questions/35491/how-to-在xfce中更改工具提示背景颜色

我已经成功地用Eclipse Luna进行了尝试.但是似乎没有什么能与日食火星一起工作.

I have tried that successfully with eclipse luna. But it seems nothing of that will work together with eclipse mars.

有人知道如何在Linux下的Eclipse Mars中更改工具提示的背景颜色吗?

Anybody knows how can I change the background color of tooltips in eclipse mars under linux?

编辑(2016年4月6日)

好的.最近几个月发现了几件事.在Eclipse Mars中,开发人员将Linux从GTK2切换到GTK3.因此,火星发生了一些变化.当我在上面写下我的问题时,我已经在XFCE上工作.现在,我已切换到KDE.在KDE上,我可以更改工具提示的背景颜色,如下面"omid"的注释中所述.但是,KDE在日食火星方面也存在一些问题.要解决此问题,请参阅我的其他问题/回答她:

Ok. Found out several things in last months. In eclipse Mars the developer switches on Linux from GTK2 to GTK3 . So there was several things changed in Mars. As I had written my question above I had work on XFCE. Now I have switched to KDE. On KDE I can change the tooltip background color like it was described in the comment of "omid" below. But also KDE has several problems with eclipse Mars. To solve this see also my other question/answer her:

https://stackoverflow.com/a/35897315/1465758

但是我发现无法更改XFCE上的工具提示背景颜色.在Gnome上可能是相同的(未经我测试)...

But I have found no way to change the Tooltip background color on XFCE. May be the same on Gnome (not tested by me)...

推荐答案

首先,创建具有以下内容的文件~/.gtkrc-2.0.eclipse:

First, create the file ~/.gtkrc-2.0.eclipse with the following content:

style "eclipse-tooltips" { bg[NORMAL] = "#FFFFAF" fg[NORMAL] = "#000000" } widget "gtk-tooltip*" style "eclipse-tooltips"

style "eclipse-tooltips" { bg[NORMAL] = "#FFFFAF" fg[NORMAL] = "#000000" } widget "gtk-tooltip*" style "eclipse-tooltips"

...然后像这样运行eclipse:

...and then run eclipse like this:

GTK2_RC_FILES=~/.gtkrc-2.0.eclipse SWT_GTK3=0 eclipse

(在此处找到这些说明: https://forum.xfce.org/viewtopic.php?pid=40119#p40119 )

(Found these instructions here: https://forum.xfce.org/viewtopic.php?pid=40119#p40119)

这篇关于linux上的eclipse-mars:工具提示中的黑色背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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