Linux Eclipse美化:解决工具栏过大和 Javadoc背景色修改

Eclipse 在Ubuntu 下老是感受上面的工具栏感受特别的大,控件之间的空隙很是的大,和在Windows 下的感受很是的不同(毕竟是刚刚从windows叛逃出来),其实也不光光是Eclipse 是这样,其余也软件也一样有这个问题。尝试过经过更换主题来解决这样的问题,总是看着一个主题,审美老是会疲劳的。在网上找来一圈,java

解决方案:linux

修改或者新建(系统默认是没有的)ubuntu

  /home/Your_username/.gtkrc-2.0  (ubuntu中 . 开头的文件默认是隐藏文件,快捷键Ctrl+H可显示隐藏文件)windows

复制以下的内容:ide

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"

注销系统再次登陆,打开Eclipse 的界面果真是紧凑来,感受不错,打开其余的程序界面也一样是紧凑来很多。工具

界面美观了很多,可是Eclipse的自动提示的背景色是黑色的,看起来也很是的难受:spa

修改方案:.net

打开终端移动到当前主题目录下:code

cd /usr/share/themes/当前的主题名/

   打开gtk-2.0/gtkrc文件:blog

sudo gedit gtk-2.0/gtkrc 

寻找到“ntooltip_fg_color”和“ntooltip_bg_color”兩個屬性的值,若是沒有改屬性,能够自行添加,其值仿照windows的默認值,分別設定位:

tooltip_fg_color:#000000 

tooltip_bg_color:#f2edbc

然後保存退出,打開系統外觀配置,切換一下主題,當切換回來的時候,修改的效果就生效了。

最后插入图片一张:

__________________________________________________

linux deepin 下,首先找出gtk的相关配置文件:

june@deepin:~>

sudo find / -name "*gtkrc*"

june@deepin:~>

sudo vi /usr/share/themes/Deepin/gtk-2.0/gtkrc

首先如上所述的修改,
而后对于有不少工具条,占用了大量的位置的问题,

咱们能够先关闭全部的视图 close all perspectives,

而后再 open perspective 便可去掉多余的工具条。

相关文章
相关标签/搜索