当前位置: 代码迷 >> Eclipse >> Ubuntu上Eclipse紧凑布局修改方法
  详细解决方案

Ubuntu上Eclipse紧凑布局修改方法

热度:479   发布时间:2016-04-23 12:51:13.0
Ubuntu下Eclipse紧凑布局修改方法

??????? 一直使用Ubuntu做Java开发,总觉得Eclipse的界面太松散,浪费了太多的空间,并且有时候对话框还不能完全显示,郁闷的····,这次升级到Ubuntu10.04之后由于主题风格变化太大,这个问题更加突出,简直无法忍受。看看效果图


??????? 在Ubuntu的论坛上找到了一个解决方法 http://forum.ubuntu.org.cn/viewtopic.php?f=70&t=196157 ,但是还不够理想,参考他的做法和其他一些紧凑主题的代码进行了改进如下,具体操作步骤请参考上文:

?

gtk_icon_sizes="panel_menu=16,16:panel=16,16:gtk_menu=12,12:gtk_small_toolbar=16,16:gtk_large_toolbar=16,16:gtk_button=16,16:gtk_dialog=16,16:gtk_dnd=16,16"style"gtkcompact"{	#	font_name="Sans9"	GtkButton::default_border={0,0,0,0}	GtkButton::default_outside_border={0,0,0,0}	GtkButton::child_displacement_x=1	GtkButton::child_displacement_y=1	GtkButtonBox::child_min_height=20	GtkButtonBox::child_min_width=80	GtkButtonBox::child_internal_pad_x=0	GtkButtonBox::child_internal_pad_y=0	GtkCheckButton::indicator_size=14	GtkMenu::vertical_padding=1	#	GtkMenu::vertical_padding=0	GtkMenu::horizontal_padding=0	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	GtkRange::stepper_size=15	GtkRange::slider_width=14	GtkScale::value_spacing=0	GtkScale::slider_length=23	GtkScale::trough_side_details=0#0=thinslider,>0=thickslider	GtkScrolledWindow::scrollbar_spacing=0	GtkScrollbar::min_slider_length=30	GtkExpander::expander_size=10	#	GtkExpander::expander_size=11	GtkExpander::expander_spacing=0	GtkTreeView::vertical_separator=0	GtkTreeView::horizontal_separator=0	GtkTreeView::fixed_height_mode=TRUE	GtkTreeView::expander_size=9	GtkTreeView::expander_spacing=0	#	GtkTreeView::expander_size=11	GtkTreeView::expander_indent=0	GtkTreeView::focus_line_width=0	GtkTreeView::spacing=0	GtkTreeView::row_ending_details=0	GtkTreeView::treeview_left=1	GtkTreeView::treeview_right=0	GtkTreeView::treeview_middle=0	GtkTreeView::passive_focus=0	GtkTreeView::separator_height=0	GtkTreeView::tree_line_pattern="\001\001"	GtkTreeView::grid_line_pattern="\001\001"	GtkTreeView::grid_line_width=0	GtkTreeView::tree_line_width=0	GtkToolbar::internal_padding=0	GtkToolbar::space_size=10	GtkWidget::focus_padding=0	xthickness=1	ythickness=1	#一下部分修改了按钮等的样式,大家可以选择使用	#engine"murrine"{	#	animation=TRUE#FALSE=disabled,TRUE=enabled	#	colorize_scrollbar=FALSE#FALSE=disabled,TRUE=enabled	#	contrast=1.0#0.8forlesscontrast,morethan1.0formorecontrastonborders	#	glazestyle=3#0=flathighlight,1=curvedhighlight,2=concavestyle,3=topcurvedhighlight,4=berylhighlight	#	gradient_shades={1.09,1.06,1.04,1.01}#default:{1.1,1.0,1.0,1.1}	#	gradients=TRUE#FALSE=disabled,TRUE=enabled	#	highlight_ratio=1.04#sethighlightamountforbuttonsorwidgets	#	lightborder_ratio=1.5#setslightborderamountforbuttonsorwidgets	#	lightborderstyle=0#0=lightborderontopside,1=lightborderonallsides	#	listviewheaderstyle=1#0=flat,1=glassy,2=raised	#	listviewstyle=1#0=nothing,1=dotted	#	menubaritemstyle=1#0=menuitemlook,1=buttonlook	#	menubarstyle=2#0=flat,1=glassy,2=gradient,3=striped	#	menuitemstyle=1#0=flat,1=glassy,2=striped	#	menustyle=0#0=noverticalmenustripe,1=displayverticalmenustripe	#	reliefstyle=2#0=flat,1=inset,2=shadow	#	rgba=TRUE#FALSE=disabled,TRUE=enabled	#	roundness=2#0=squared,1=olddefault,morewillincreaseroundness	#	scrollbarstyle=2#0=nothing,1=circles,2=handles,3=diagonalstripes,4=diagonalstripesandhandles,5=horizontalstripes,6=horizontalstripesandhandles	#	sliderstyle=1#0=nothingadded,1=handles	#	stepperstyle=0#0=standard,1=integratedstepperhandles,2=unknown	#	style=MURRINE#enginestyleoptions:CANDIDO,CLEARLOOKS,MIST,MURRINE,NODOKA	#	toolbarstyle=0#0=flat,1=glassy,2=gradient	#}}widget_class"*"style"gtkcompact"

?最终效果图如下:


1 楼 skzr.org 2010-05-08  
我的home目录中没有~/.gtkrc ~/.gtkrc-2.0
2 楼 skzr.org 2010-05-08  
不知博主的ubuntu 10.04的~目录下有.gtkrc还是.gtkrc-2.0?
3 楼 simen_net 2010-05-08  
这个文件要自己新建,它的级别非常高,会自动覆盖 “外观首选项”里面的设置
4 楼 greatghoul 2010-06-18  
不错,我也觉得ubuntu下eclipse有点太浪费空间了。修改以后,果然觉得地方大多了。
5 楼 hankgong 2010-06-19  
虽然我也觉得eclipse是界面有点过大,真没想到居然有人会去自己写个这样的定制文件,就拿来用吧,谢了!
  相关解决方案