【发布时间】:2012-08-02 02:18:26
【问题描述】:
我的问题与 Stack Overflow 问题非常相似Gigantic Tabs in Eclipse on Ubuntu。
我已经尝试过提供的解决方案,但它们似乎已经过时了。我发现a solution 可以很好地处理工具栏和菜单,但不是减少窗格中不成比例的大选项卡(和标签)的大小和填充的解决方案(请参阅下面屏幕中的选项卡“包资源管理器”)。
我对自定义操作系统范围的 GTK 主题的方式感到满意,并且不想更改它。是否有快速解决方法来减少 Eclipse 中窗格的选项卡大小?
我在 Ubuntu 12.04 上使用 Eclipse for Mobile Developers (Juno)。我还要提一下,我真的很喜欢 Eclipse 在 Windows 7 中的开箱即用方式,所以类似的东西会很理想。
以下是我正在使用的 Eclipse 特定 GTK 样式:
style "eclin" {
GtkButton::default_border={1,1,1,1}
GtkButton::default_outside_border={1,1,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"
下面是我的 IDE 带有巨大标签的屏幕截图:
【问题讨论】:
-
@eicto,您应该将此作为完整答案,并提及您必须选择 GTK 作为窗口管理器。
-
至少自从 eclipse Mars 有一个专门的字体设置:转到首选项 -> 常规 -> 外观 -> 颜色和字体 -> 查看和编辑器文件夹 -> 部分标题字体
标签: eclipse ubuntu user-interface gtk