`
huobengluantiao8
  • 浏览: 1029426 次
文章分类
社区版块
存档分类
最新评论

ubuntu下eclipse提示框颜色问题

 
阅读更多

ubuntu下的eclipse的提示框可能会是黑色背景,而字体很难辨认,严重影响阅读:

在一个国外网站中找到了解决问题的办法:

http://askubuntu.com/questions/70599/how-to-change-tooltip-background-color-in-unity

他的问题是:

In a lot of applications the tooltips are just plain ugly (White text on black background, way too much contrast) or even unreadable (black or dark blue text (Hyperlinks) on black background). I want to change the background color of the tooltips to some medium gray or even some yellow or something like that, maybe even something semi-transparent.

Here is a screenshot of Eclipse which displays some source code in a tool tip with black text on black background:

Switching to a different theme (Something other than Ambiance or Radiance) helps but I like Ambiance and I want to keep it. It's just this darn tooltip color which is absolutely unacceptable.

I found several solutions for older Ubuntu versions but they no longer work with Unity in Ubuntu 11.10 because I can't find any function to customize the Ambiance or Radiance theme. So how do I do that in the current Ubuntu version?

这个问题可以通过修改系统的主题解决,但是如果不想修改主题怎么办呢?

解决方法如下:

Found it!

I had to edit these files:

/usr/share/themes/Ambiance/gtk-3.0/settings.ini
/usr/share/themes/Ambiance/gtk-3.0/gtk.css
/usr/share/themes/Ambiance/gtk-2.0/gtkrc

You require root privileges to edit the files. Usesudo geditto edit them.

Search fortooltipin these files and you'll find the color definitions for the foreground and the background. I use#000000as foreground and#f5f5b5as background and now the tooltips in all applications are again readable. After changing the color values simply switch to some other theme and then back to Ambiance and the tooltip color is now fixed.


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics