How to fix Eclipse UI in Linux

One of the worst thing which can happen to any developer is when the tool he uses 8+ hours per day suddenly changes the UI. This is the case of the new version of Eclipse on linux distributions - the GTK layout simply uses huge fonts and other elements so the whole workbench is just terribly useless. There is nothing simply you could do in the Eclipse settings for changing this behaviour but some smart guy came up with custom gtk theme which puts things back to order - so shutdown eclipse and do the following:

vim ~/.gtkrc-2.0

And put there:

style "gtkcompact" {font_name="Sans 8"GtkButton::default_border={0,0,0,0}GtkButton::default_outside_border={0,0,0,0}GtkButtonBox::child_min_width=0GtkButtonBox::child_min_heigth=0GtkButtonBox::child_internal_pad_x=0GtkButtonBox::child_internal_pad_y=0GtkMenu::vertical-padding=1GtkMenuBar::internal_padding=0GtkMenuItem::horizontal_padding=4GtkToolbar::internal-padding=0GtkToolbar::space-size=0GtkOptionMenu::indicator_size=0GtkOptionMenu::indicator_spacing=0GtkPaned::handle_size=4GtkRange::trough_border=0GtkRange::stepper_spacing=0GtkScale::value_spacing=0GtkScrolledWindow::scrollbar_spacing=0GtkExpander::expander_size=10GtkExpander::expander_spacing=0GtkTreeView::vertical-separator=0GtkTreeView::horizontal-separator=0GtkTreeView::expander-size=8GtkTreeView::fixed-height-mode=TRUEGtkWidget::focus_padding=0}class "GtkWidget" style "gtkcompact"style "gtkcompactextra" {xthickness=0ythickness=0}class "GtkButton" style "gtkcompactextra"class "GtkToolbar" style "gtkcompactextra"class "GtkPaned" style "gtkcompactextra"

Comments