读书人

在Linux环境上调整Eclipse中树状列表(

发布时间: 2013-03-06 16:20:31 作者: rapoo

在Linux环境下调整Eclipse中树状列表(GtkTreeView)的显示密度

? font_name="Sans 8"
? GtkTreeView::vertical-separator=0
? GtkTreeView::horizontal-separator=0
}
class "GtkTreeView" style "eclipse"

重启Eclipse应该就能看到效果了。如果你想做得更彻底,对所有常用的GTK+2.0控件都开刀的话,可以这样写:

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=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
? 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"

读书人网 >UNIXLINUX

热点推荐