Гном часто ругают за большие кнопки, которые съедают много полезного места на скране при маленьком разрешении.
У меня на ноуте разрешение 1024x768 решил максимально оптимизировать интерфейс.
вот что у меня получилось:
Feisty
Все иконки во всех меню и кнопках 16х16.
Также на первом скрине можно увидеть диалог сохранения файла в firefox он такого размера по умолчанию
для стого пришлось наложить патчи для gtk.
со обовсём попорядку.
1) Делаем меню и кнопки маленькими
для стого нужно добавить такие строчки в файл
gedit ~/.gtkrc-2.0
gtk-icon-sizes = "panel-menu=16,16:panel=16,16:gtk-menu=16,16:gtk-small-toolbar=16,16:gtk-large-toolbar=16,16:gtk-button=16,16:gtk-dialog=16,16:gtk-dnd=16,16"
gtk-toolbar-icon-size = GTK_ICON_SIZE_SMALL_TOOLBAR
после перезагрузки гнома (Завершение сеанса) все программы использующие библиотеку gtk будут использовать иконки размером 16х16.
2) Диалог сохраненис
Патч взят тут
http://bugzilla.gnome.org/show_bug.cgi?id=325477Для Edgy последнсс версия на 3.02.2007 2.10.6-0ubuntu3.1:Для стого нужно скачать и установить.
ftp://80.86.249.14/gtk2.0/libgtk2.0-0_2.10.6-0ubuntu3.1_i386.debftp://80.86.249.14/gtk2.0/libgtk2.0-bin_2.10.6-0ubuntu3.1_i386.debftp://80.86.249.14/gtk2.0/libgtk2.0-common_2.10.6-0ubuntu3.1_all.debТеперь нужно указать какой минимальный размер окна диалога
gedit ~/.config/gtk-2.0/gtkfilechooser
<minimum_width value="640"/>
<minimum_height value="480"/>
<open_browse_expander value="true"/>
Или пересобрать самим.
например так:
mkdir ~/src/gkt2.0
cd ~/src/gkt2.0
sudo apt-get build-dep libgtk2.0-0
sudo apt-get source libgtk2.0-0
cd gtk+2.0-2.10.6/debian/patches
sudo wget ftp://80.86.249.14/gtk2.0/4711_maximize_file_~ooser_dialog.patch
sudo wget ftp://80.86.249.14/gtk2.0/4712_minimum_default_size.patch
cd ../..
sudo dpkg-buildpackage -rfakeroot
cd ..
sudo dpkg -i libgtk2.0-0_2.10.6-0ubuntu3.1_i386.deb libgtk2.0-bin_2.10.6-0ubuntu3.1_i386.deb libgtk2.0-common_2.10.6-0ubuntu3.1_all.deb
3) gaim
Интерфейс gaim2 можно оптимизировать для стого
gedit ~/.gaim/gtkrc-2.0
# When turned on, this option causes gtk to select the contents of an entry field when it becomes focused.
gtk-entry-select-on-focus = 1
#############################
#font stuff
############################
# Sets the font used by all gtk applications.
gtk-font-name = "Sans 8"
# The following section allows you to change the style of the conversation
# window widgets, log viewer widget, and request and notify window widgets.
# These only work in Gaim 0.78 or higher.
style "imhtml-fix"
{
font_name = "Sans 8"
}
# Set the widget style for the conversation entry box
widget "*gaim_gtkconv_entry" style "imhtml-fix"
# Set the widget style for the conversation
widget "*gaim_gtkconv_imhtml" style "imhtml-fix"
# Set the widget style for the log viewer
widget "*gaim_gtklog_imhtml" style "imhtml-fix"
# Set the widget style for IMHtml input widgets in request dialogs
widget "*gaim_gtkrequest_imhtml" style "imhtml-fix"
# Set the widget style for IMHtml widgets in notify dialogs
widget "*gaim_gtknotify_imhtml" style "imhtml-fix"
# Uncommenting the line below sets all IMHtml widgets in Gaim to the same style
# and will work in Gaim versions prior to 0.78
#widget_class "*.GtkScrolledWindow.GtkIMHtml" style "imhtml-fix"
# The following lets you customize the color of hyperlinks
# and also the text cursors. The link color thing is Gaim specific
# but the rest work for any Gtk2 program. You can search the Gtk2
# docs for other style properties.
style "my-style-name" {
GtkIMHtml::hyperlink-color = "#000080"
GtkWidget::cursor-color = "#0000FF"
GtkWidget::secondary-cursor-color = "#00FF00" #for mixed ltr and rtl
xthickness = 0
ythickness = 0
GtkNotebook::tab-border = 0
GtkNotebook::tab-hborder = 0
GtkNotebook::tab-vborder = 0
GtkNotebook::show-border = 0
# widget_class "*.GtkNotebook.*.GtkViewport" style "clearlooks-notebook"
# font_name="Terminus 7"
}
widget_class "*" style "my-style-name"
widget "*" style "my-style-name"
widget_class "*MenuItem.*" style "my-style-name"
#widget_class "*.GtkNotebook.*" style "clearlooks-notebook"
#widget_class "*.GtkNotebook.*" style "clearlooks-notebook"
style "Dialog_size" {
GtkWindow::default-height=600
GtkWindow::default-width=800
}
widget_class "*GtkDialog*" style "Dialog_size"
#############################
#Blist stuff
#############################
# This style sets the expander size on a treeview to 0, which has the result
# of reducing the indent for items in the tree. This can be applied to the
# Gaim buddy list to reduce it's width.
# This only works in Gaim 0.79 and higher
style "my-narrow-tree"
{
GtkTreeView::expander_size = 0
}
# And apply the style to the buddy list:
widget "*gaim_gtkblist_treeview" style "my-narrow-tree"
# Customize the New 2.0.0 Status Selector
style "gaim-statusbox-style" {
# This is a work-around that keeps you from having to scroll
# if the status selector is at the bottom of the screen.
GtkComboBox::appears-as-list = 1
# Depending on your theme and/or GTK+ version, one of
# the following blocks should eliminate excess padding.
# The second approach is probably more universally
# applicable, but the first removes more padding for
# some people.
# Eliminate Padding Approach 1
xthickness = 0
ythickness = 0
# Eliminate Padding Approach 2
# xthickness = 2
# ythickness = 2
GtkWidget::focus-line-width = 0
GtkWidget::focus-padding = 0
}
widget "*gaim_gtkblist_statusbox*" style "gaim-statusbox-style"
widget_class "GtkNotebook" style "gaim-statusbox-style"
widget "GtkNotebook" style "gaim-statusbox-style"
#############################
#key bindings
#############################
# Controls the keybindings that gtk uses for text entry/editing/etc
# The "emacs" theme turns on things like:
# ctrl-a == move to beginning of line, ctrl-e == move to end of line, etc.
#gtk-key-theme-name = "Emacs"
#to let you edit your gaim key bindings
#gtk-can-change-accels = 1
# In Gaim 2.0.0 and later, you can set custom keybindings in your theme. Here
# is an example to follow
#binding "my-bindings"
#{
# enter inserts a newline
# bind "Return" { "insert-at-cursor" ("\n") }
# ctrl-s sends message
# bind "<ctrl>s" { "message_send" () }
# shift-f1 toggles bold
# bind "<shft>F1" { "format_function_toggle" (1) }
# alt-f2 toggles italic
# bind "<alt>F2" { "format_function_toggle" (2) }
# Ctrl-alt-shift-f3 toggles underline
# bind "<ctrl><alt><shift>F3" { "format_function_toggle" (4) }
# Ctrl-f1 resets the formatting
# bind "<ctrl>F1" { "format_function_clear" () }
#}
#widget "*gaim_gtkconv_entry" binding "my-bindings"
Теперь нужно вулючить модуль "модули->Управление темой GTK 2.0"
Для того чтобы пользователи в контакт листе отображались маленькой иконкой нужно
поправить
gedit ~/.gaim/prefs.xml
но перед этим закрыть gaim
найти в файле
<pref name='show_buddy_icons' type='bool' value='1'/>
И изменить value на 0
<pref name='show_buddy_icons' type='bool' value='0'/>
сохранить и запестить gaim.
4) Иконки в FireFox тоже можно уменьшить
для стого нужно кликнуть на панеле firefox выбрать настроить и поставить галку маленькие значки.
5) Иконки в OpenOffice
Сервис-> параметры-> Вид-> Размер и стиль значков-> маленькие
Просто скрин