ubuntu12.04 美化eclipse

最终效果,这是非全屏模式下的抓图(如果全屏模式Alt+F11打开后,最上面没用的标题栏也会被隐藏,从而使可编辑区域最大化!)





1。安装theme插件
从Marketplace搜索Eclipse Color Theme并安装
Appearance选择MoonRise(standlone)
Color Theme选择Sublime Text2

2.解决ubuntu下eclipse工具栏不够紧凑的问题,在Home目录下新建文件.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"
3.隐藏Eclipse最下面的状态栏.
修改plugins目录下moonrise插件对应的jar包中的css文件,用来隐藏status line我的路径为:
/home/cyper/.eclipse/org.eclipse.platform_4.3.2_590847680_linux_gtk_x86_64/plugins/com.github.eclipseuitheme.themes.moonrise-ui_0.8.9.201404052318.jar
themes/css/moonrise-ui-standalone.css
在最后面加上:
#org-eclipse-ui-trim-status, #org-eclipse-ui-trim-vertical1, #org-eclipse-ui-trim-vertical2 { visibility: hidden; }
4.装fullsceen插件 -> update site :
http://scharf.gr/eclipse/fullscreen/update/ 装好后按Alt+F11可以让Eclipse全屏显示, 以上所有下载may or may not need 越狱,请自备梯子.

参考:

http://stackoverflow.com/questions/5645495/how-to-hide-the-status-bar-in-eclipse
http://stackoverflow.com/questions/2743647/gigantic-tabs-in-eclipse-on-ubuntu
http://stackoverflow.com/questions/13684289/can-i-make-eclipse-on-ubuntu-look-more-compact

转载于:https://my.oschina.net/uniquejava/blog/374630

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值