About Me

My photo
I know the last digit of PI

Monday, March 28, 2016

Eclipse is too big under Gnome (Fedora 23)

To make eclipse looks more nicer (similar look as on Windows machines) perform following steps:
  1. Create new eclipse launcher and pass GTK version 2 as parameter
    [Desktop Entry]
    Encoding=UTF-8
    Name=Eclipse IDE
    Exec=/opt/eclipse.4.5.2/eclipse --launcher.GTK_version 2
    Icon=/opt/eclipse.4.5.2/icon.xpm
    Type=Application
    Categories=Development;
    
  2. Create configuration file ~/.gtkrc-2.0 with following content:
    style "gtkcompact" { 
      font_name="Sans 8"
      GtkButton::defaultborder={0,0,0,0} 
      GtkButton::defaultoutsideborder={0,0,0,0} 
      GtkButtonBox::childminwidth=0 
      GtkButtonBox::childminheigth=0 
      GtkButtonBox::childinternalpadx=0 
      GtkButtonBox::childinternalpady=0 
      GtkMenu::vertical-padding=1 
      GtkMenuBar::internalpadding=0 
      GtkMenuItem::horizontalpadding=4
      GtkToolbar::internal-padding=0 
      GtkToolbar::space-size=0 
      GtkOptionMenu::indicatorsize=0 
      GtkOptionMenu::indicatorspacing=2 
      GtkPaned::handlesize=4 
      GtkRange::troughborder=0 
      GtkRange::stepperspacing=0 
      GtkScale::valuespacing=0 
      GtkScrolledWindow::scrollbarspacing=0 
      GtkExpander::expandersize=10 
      GtkExpander::expanderspacing=0 
      GtkTreeView::vertical-separator=0 
      GtkTreeView::horizontal-separator=0 
      GtkTreeView::expander-size=8 
      GtkTreeView::fixed-height-mode=TRUE 
      GtkWidget::focuspadding=1 
    } 
    class "GtkWidget" style "gtkcompact"
    
    style "gtkcompactextra" { 
      xthickness=2 ythickness=2 
    } 
    class "GtkButton" style "gtkcompactextra"
    class "GtkToolbar" style "gtkcompactextra"
    class "GtkPaned" style "gtkcompactextra"
    

No comments: