Ubuntu 13.04 改变 Eclipse popup 的颜色

Linux大全评论1.4K views阅读模式

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 改变 Eclipse popup 的颜色

推荐阅读:

企鹅博客
  • 本文由 发表于 2019年7月12日 20:17:27
  • 转载请务必保留本文链接:https://www.qieseo.com/178420.html

发表评论