作者:平和-3699 | 来源:互联网 | 2017-10-02 15:03
Ubuntu13.04中,因为系统本身的tooltip背景色是黑色,前景色为白色,所以,eclipse中,将鼠标放到某个方法上时,弹出的javadocpopup也是黑底白字。基本上没人能忍受这个颜色。而且,由于Ubuntu13.04Appearance中的Theme是无法customize的,所以,根本就没办法修改系统tooltip的颜色搜索了下,找到解决方法
Ubuntu 13.04中,因为系统本身的 tooltip 背景色是黑色,前景色为白色,所以,eclipse中,将鼠标放到某个方法上时,弹出的 javadoc popup 也是黑底白字。基本上没人能忍受这个颜色。
而且,由于 Ubuntu 13.04 Appearance中的Theme是无法customize的,所以,根本就没办法修改 系统 tooltip 的颜色
搜索了下,找到解决方法
#foreground white => black
sudo sed -i s/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g /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
#background black => yellow
sudo sed -i s/tooltip_bg_color:#000000/tooltip_bg_color:#f5f5b5/g /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
运行上面两条命令后,弹出 javadoc 的颜色如下图所示
推荐阅读:
Ubuntu 13.04 设置Dash中显示Eclipse http://www.linuxidc.com/Linux/2013-06/85855.htm
更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2