Fedora18中修改eclipse窗體風格

在新版本的fedora中,gnome3的標題欄和工具欄都看起來至關不協調,寫代碼的時候看着也不舒服。 shell

由於eclipse是基於gtk2.0的,因此修改gtk的相關設置,能夠達到修改eclipse窗體風格的目的。 eclipse

新建~/.gtkrc-2.0,寫入如下配置: 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"
具體的字體和大小能夠根據實際狀況調整,保存後全部基於gtk的程序,都會統一用該配置。


參考:http://blog.csdn.net/zpf1217/article/details/5836263 工具

相關文章
相關標籤/搜索