关闭

ubuntu下eclipse提示框颜色问题

标签: ubuntueclipsefunction
1804人阅读 评论(0) 收藏 举报

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. Use sudo gedit to edit them.

Search for tooltip in these files and you'll find the color definitions for the foreground and the background. I use #000000 as foreground and #f5f5b5 as 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.


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:369827次
    • 积分:5754
    • 等级:
    • 排名:第4467名
    • 原创:199篇
    • 转载:35篇
    • 译文:1篇
    • 评论:33条
    文章分类
    最新评论