Last active
January 14, 2019 16:06
-
-
Save Rud5G/2584352 to your computer and use it in GitHub Desktop.
Fix Tooltip Background Color Zend Studio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
set -e -u | |
# 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 | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
path=/usr/share/themes | |
theme=Ambiance | |
if [ $# = 1 ]; then | |
theme=$1 | |
fi | |
echo "Fixing tooltips for theme $theme" | |
echo " (you can select a different theme by passing its name as argument)" | |
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment