我的问题是非常类似于Stack Overflow问题
@L_404_0@。
我试过解决方案,但他们似乎是老。我发现a solution很好地处理工具栏和菜单,但不是一个解决方案,减少窗格中不成比例的大选项卡(和标签)的大小和填充(请参阅下面的屏幕中的“包资源管理器”选项卡)。@H_404_2@
我很高兴我的操作系统的GTK主题是定制的,不想改变。是否有一个快速修复,以减少Eclipse中窗格的选项卡大小?@H_404_2@
我在Ubuntu 12.04上使用Eclipse for Mobile Developers(Juno)。我还会提到,我真的很喜欢Eclipse在Windows 7中出现的方式,所以类似的东西是理想的。@H_404_2@
这里是我使用的eclipse特定GTK样式:@H_404_2@
style "eclin" { GtkButton::default_border={1,1,1} GtkButton::default_outside_border={1,1} 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=1 GtkMenuItem::horizontal_padding=4 GtkToolbar::internal-padding=1 GtkToolbar::space-size=1 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=12 GtkTreeView::fixed-height-mode=TRUE GtkWidget::focus_padding=0 font_name="Liberation Sans,Sans Regular 8" } class "GtkWidget" style "eclin" style "eclin2" { xthickness=1 ythickness=1 } class "GtkButton" style "eclin2" class "GtkToolbar" style "eclin2" class "GtkPaned" style "eclin2"
你可以编辑Eclipse的CSS,而不是搞砸GTK主题。
在你的Eclipse目录中找到文件plugins / org.eclipse.platform_4.2。* / css / e4_default_gtk.css(在里面有一个*,因为我猜测版本可能在将来改变或可能已经不同了。在这个文件中有一个CSS类:@H_404_2@
.MPartStack { font-size: 11; swt-simple: false; swt-mru-visible: false; }
>将font-size更改为更小的字体
>只是注释掉或从此类中删除字体大小(适用于我)@H_404_2@
这应该做的伎俩。@H_404_2@