eclipse的美化

    技术2022-05-19  19

    总觉得在Ubuntu下eclipse工作台中显示的行数没有Windows中多,这样会影响代码观察的范围和习惯,因此参考一下博文来改进。

    http://blog.csdn.net/zpf1217/archive/2010/08/25/5836263.aspx

     

    这需要修改~/.gtkrc-2.0文件,如果没有就生成一个新的文件,修改和增加的内容为:

     

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

     

    效果很不错

     


    最新回复(0)