I just installed Ubuntu after using Eclipse on Windows 8 for some time. The only thing I can\'t figure out how to modify is the color of the vertical bar when you\'re worki
This is called as Range indicator.You can switch off the range indicator.
Click Windows > Preferences
. Navigate to General > Editors > Text Editors
. De select Show Range indicator
option.
Color of range indicator is controlled by OS not by eclipse.
gtk-theme-config
tool from Ubuntu software centre. Change the Highlight background color
. Logout and login again.
After change:
Note that this will change the selection colour in other applications also like nautilus, Firefox etc.
Somewhere on your home directory, create a gtkrc file (like: ~/.gtkrc-eclipse) with following content:
gtk-color-scheme = "selected_bg_color:#0AFC02\nselected_fg_color:#FFFFFF\norginal_selected_bg_color:#f07746\ntooltip_bg_color:#f5f5c5\ntooltip_fg_color:#000000"
style "range-indicator"
{
base[SELECTED] = @selected_bg_color
}
class "GtkWindow" style "range-indicator"
Launch eclipse from command line like,
env GTK2_RC_FILES=/usr/share/themes/<Your current theme>/gtk-2.0/gtkrc:/home/<user name>/.gtkrc-eclipse '
env GTK2_RC_FILES=/usr/share/themes/Ambiance/gtk-2.0/gtkrc:/home/chandrayya/.gtkrc-eclipse '/opt/eclipse-3.3/eclipse'
You can find out your current theme by executing,
gsettings get org.gnome.desktop.interface gtk-theme
Note that is also changes the text selection background and foreground colour in editor, we can't avoid it.