不得不说在linux下eclipse的显示问题真是个蛋碎的问题。
在stackflow上面找到了一个解决方法,不过看提问者好像是个强迫症阿,哈哈!
原址在 here
//这个只是解决了上面那个标题栏的问题,但是对logcat的输出显示好像没有多大作用。
1 在主目录下,我的主目录为/home/mjzvim .gtkrc-2.0
然后将下面一段复制到这个文件中,再重启eclipse改观就大多了。style "gtkcompact" {
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"
祝君好运
使用了上面的那个之后,界面是有了改变,但是logcat输出的字体还是太占空间,下面又找到一种更好的方案。
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"
原文在这里