解决Ubuntu Eclipse 代码浮层黑色背景问题
2012-05-09 23:42
323 查看
解决Ubuntu
Eclipse 代码浮层黑色背景问题
# /bin/sh
# Tooltip fix
# A script to fix themes files in Ubuntu 11.10
# to have readable tooltips in applications such
# as eclipse.
# The script edits the gtk.css, settings.ini and gtkrc files
# Author: Victor Pillac
# http://victorpillac.wordpress.com
echo "Tooltip Fix Script"
echo " author: Victor Pillac [http://victorpillac.wordpress.com]"
echo " usage : tooltipfix [themeName]"
echo " where themeName is the name of the theme to fix"
echo "-----------------------------"
if [ "$(id -u)" != "0" ]; then
echo "You must be root to run this program, aborting" 1>&2
exit 1
fi
path=/usr/share/themes
theme=Ambiance
if [ $# = 1 ]; then
theme=$1
fi
echo "Fixing tooltips for theme $theme"
sed -i 's/tooltip_bg_color #000000/tooltip_bg_color #f5f5b5/g' $path/$theme/gtk-3.0/gtk.css
sed -i 's/tooltip_fg_color #ffffff/tooltip_fg_color #000000/g' $path/$theme/gtk-3.0/gtk.css
sed -i 's/tooltip_bg_color:#000000/tooltip_bg_color:#f5f5b5/g' $path/$theme/gtk-3.0/settings.ini
sed -i 's/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g' $path/$theme/gtk-3.0/settings.ini
sed -i 's/tooltip_bg_color:#000000/tooltip_bg_color:#f5f5b5/g' $path/$theme/gtk-2.0/gtkrc
sed -i 's/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g' $path/$theme/gtk-2.0/gtkrc
echo "Done"
Eclipse 代码浮层黑色背景问题
# /bin/sh
# Tooltip fix
# A script to fix themes files in Ubuntu 11.10
# to have readable tooltips in applications such
# as eclipse.
# The script edits the gtk.css, settings.ini and gtkrc files
# Author: Victor Pillac
# http://victorpillac.wordpress.com
echo "Tooltip Fix Script"
echo " author: Victor Pillac [http://victorpillac.wordpress.com]"
echo " usage : tooltipfix [themeName]"
echo " where themeName is the name of the theme to fix"
echo "-----------------------------"
if [ "$(id -u)" != "0" ]; then
echo "You must be root to run this program, aborting" 1>&2
exit 1
fi
path=/usr/share/themes
theme=Ambiance
if [ $# = 1 ]; then
theme=$1
fi
echo "Fixing tooltips for theme $theme"
sed -i 's/tooltip_bg_color #000000/tooltip_bg_color #f5f5b5/g' $path/$theme/gtk-3.0/gtk.css
sed -i 's/tooltip_fg_color #ffffff/tooltip_fg_color #000000/g' $path/$theme/gtk-3.0/gtk.css
sed -i 's/tooltip_bg_color:#000000/tooltip_bg_color:#f5f5b5/g' $path/$theme/gtk-3.0/settings.ini
sed -i 's/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g' $path/$theme/gtk-3.0/settings.ini
sed -i 's/tooltip_bg_color:#000000/tooltip_bg_color:#f5f5b5/g' $path/$theme/gtk-2.0/gtkrc
sed -i 's/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g' $path/$theme/gtk-2.0/gtkrc
echo "Done"
相关文章推荐
- 解决Ubuntu Eclipse 代码浮层黑色背景问题
- 解决Ubuntu Eclipse 代码浮层黑色背景问题
- ubuntu eclipse代码提示黑色背景的解决办法
- Ubuntu下Eclipse CDT 代码悬浮提示窗口背景黑色设置方法
- ubuntu 11.10 解决eclipse indigo debug提示框黑色背景问题
- ubuntu下使用eclipseCDT编写的C代码移植到AIX后乱码问题解决
- Ubuntu 12.04 Eclipse设置(黑色背景解决)
- Ubuntu12.10 设置Eclipse修改代码提示黑色背景
- ubuntu 11.10 下eclipse 黑色背景问题处理
- ubuntu 下 eclipse 黑色背景问题处理
- "ubuntu 下 eclipse 代码提示功能显示后焦点不在eclipse内,需点击窗口才行 “ 问题的解决
- ubuntu 12.04 中eclipse下面提示框背景为黑色的解决方法
- ubuntu12.10 eclipse 黑色背景问题
- Ubuntu 14.04 Eclipse提示框背景为黑色问题完全解决方案
- Ubuntu系统下运行Eclipse出现找不到jre的问题的解决方法
- Ubuntu解决MyEclipse/Eclipse Ctrl+Alt+Up/Down无法使用的问题
- ListView滑动时 item出现黑色背景的问题的解决方法
- 解决AndroidADT自带Eclipse编辑器不能自动代码提示的问题
- ListView滑动时 item出现黑色背景的问题的解决方法
- ListView滑动时 item出现黑色背景的问题的解决方法