当前位置: 代码迷 >> Eclipse >> [转载] Ubuntu停eclipse界面美化
  详细解决方案

[转载] Ubuntu停eclipse界面美化

热度:94   发布时间:2016-04-23 13:08:32.0
[转载] Ubuntu下eclipse界面美化
[转载自:]http://wujiandong.iteye.com/blog/1184847

Ubuntu系统下的eclipse默认界面显示很是难看,图标大字体大,看着都没了写代码的欲望了...
找了下解决方案,这里记录下:

首先在用户目录下查找.gtkrc,.gtkrc-2.0 如果装了kde4还有~/.gtkrc-2.0-kde4这几个文件,如果没有(多半是没有)就新建这三个文件,然后在这三个文件中都要添加以下这句话:

include "/home/yourusername/.gtkrc.mine"  

注意:这句话不要照搬抄,yourusername代表你自己的用户目录名.
其实只要新建.gtkrc和.gtkrc-2.0两个文件就可以了,因为Ubuntu里的文件名不给输入"/"符号,kde4没装过,不知道是咋回事



然后新建.gtkrc.mine文件,添加如下内容:

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


重启eclipse,OK了

为了达到最佳效果,还需要再调整下eclispe的字体样式及大小,这样就完美了~~
  相关解决方案