See also [[Uniform Look for Qt and GTK Applications#How do I set styles for each toolkit?]]

+

See also [[Uniform Look for Qt and GTK Applications#Changing styles in each toolkit]].

== Themes ==

== Themes ==

Line 76:

Line 80:

If you use [[Xfce]] 4.8, both GTK+ 3.x and GTK+ 2.x themes can be managed by Appearance tool. Go to Settings-->Appearance. If selected style has both GTK+ 2.x and GTK+ 3.x themes, they will be used. If selected style has only GTK+ 2.x theme, it will be used for GTK+ 2.x applications and (ugly) defaults will be used for GTK+ 3.x applications. If selected style has only GTK+ 3.x theme, it will be used for GTK+ 3.x applications and (ugly) defaults will be used for GTK+ 2.x applications. Thus for uniform UI appearance and best experience one can use style that has both GTK+ 2.x and GTK+ 3.x themes. Search packages and [[AUR]]. One example of this is theme {{AUR|clearwaita-gtk-theme}}.

If you use [[Xfce]] 4.8, both GTK+ 3.x and GTK+ 2.x themes can be managed by Appearance tool. Go to Settings-->Appearance. If selected style has both GTK+ 2.x and GTK+ 3.x themes, they will be used. If selected style has only GTK+ 2.x theme, it will be used for GTK+ 2.x applications and (ugly) defaults will be used for GTK+ 3.x applications. If selected style has only GTK+ 3.x theme, it will be used for GTK+ 3.x applications and (ugly) defaults will be used for GTK+ 2.x applications. Thus for uniform UI appearance and best experience one can use style that has both GTK+ 2.x and GTK+ 3.x themes. Search packages and [[AUR]]. One example of this is theme {{AUR|clearwaita-gtk-theme}}.

−

If you use a GTK+ 2.x based DE, like [[Xfce]], [[LXDE]], gnome-tweak-tool won't work; see {{bug|23644}}. You need to [[pacman|install]] {{pkg|librsvg}}, and set your theme manually in {{ic|{XDG_CONFIG_HOME}/gtk-3.0/settings.ini}} (this is usually {{ic|~/.config/gtk-3.0/settings.ini}}. An example {{ic|settings.ini}} file:

+

If you use a GTK+ 2.x based DE, like [[Xfce]], [[LXDE]], gnome-tweak-tool won't work; see {{bug|23644}}. You need to [[pacman|install]] {{pkg|librsvg}}, and set your theme manually in {{ic|$XDG_CONFIG_HOME/gtk-3.0/settings.ini}} (this is usually {{ic|~/.config/gtk-3.0/settings.ini}}. An example {{ic|settings.ini}} file:

−

{{hc|{XDG_CONFIG_HOME}/gtk-3.0/settings.ini|2=

+

{{hc|$XDG_CONFIG_HOME/gtk-3.0/settings.ini|2=

[Settings]

[Settings]

gtk-application-prefer-dark-theme = false

gtk-application-prefer-dark-theme = false

Line 87:

Line 91:

}}

}}

−

If it still does not change, delete old gtk-3.0 folder in {XDG_CONFIG_HOME} and copy gtk-3.0 folder from /path-to-the-theme to {XDG_CONFIG_HOME}. example:

+

If it still does not change, delete old {{ic|gtk-3.0}} folder in {{ic|$XDG_CONFIG_HOME}} and copy {{ic|gtk-3.0}} folder from /path/to/theme to {{ic|$XDG_CONFIG_HOME}}. Example:

−

rm -r ~/.config/gtk-3.0/

+

−

cp -r /usr/share/themes/Zukitwo/gtk-3.0/ ~/.config/

+

$ rm -r ~/.config/gtk-3.0/

+

$ cp -r /usr/share/themes/Zukitwo/gtk-3.0/ ~/.config/

After this, you need to set the same theme in your DE's appearance configuration tool. There are only a few themes which provide a uniform look for GTK+ 3.x and GTK+ 2.x apps. A few examples:

After this, you need to set the same theme in your DE's appearance configuration tool. There are only a few themes which provide a uniform look for GTK+ 3.x and GTK+ 2.x apps. A few examples:

Line 99:

Line 104:

#Hope

#Hope

−

You could find what themes installed on your system have both an Gtk2 and Gtk3 version by using this command (don't work with names containing spaces) :

+

You could find what themes installed on your system have both an GTK+ 2.x and GTK+ 3.x version by using this command (don't work with names containing spaces):

{{Note|See the [http://library.gnome.org/devel/gtk/stable/GtkSettings.html#GtkSettings.properties ''GtkSettings'' properties] in the GTK+ programming reference manual for the full list of GTK configuration options.}}

{{Note|See the [http://library.gnome.org/devel/gtk/stable/GtkSettings.html#GtkSettings.properties ''GtkSettings'' properties] in the GTK+ programming reference manual for the full list of GTK configuration options.}}

−

The purpose of this section is to collect GTK configuration settings which can e.g. be used within {{Ic|~/.gtkrc-2.0}}.

+

The purpose of this section is to collect GTK+ configuration settings which can e.g. be used within {{Ic|~/.gtkrc-2.0}}.

=== Enabling Customizable Keyboard Shortcuts ===

=== Enabling Customizable Keyboard Shortcuts ===

−

You can customize your GTK applications' keyboard shortcuts (those are called ''accelerators'' in GTK terminology) by hovering your mouse over a menu item and pressing your desired key combination. However, this feature is disabled by default. To enable it, set

+

You can customize your GTK+ applications' keyboard shortcuts (those are called ''accelerators'' in GTK+ terminology) by hovering your mouse over a menu item and pressing your desired key combination. However, this feature is disabled by default. To enable it, set

GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites.

GTK+, The GIMP Toolkit, was initially made by the GNU Project for the GIMP but is now a very popular toolkit with bindings for many languages.

Alternatively, GTK+ settings can be configured manually by editing ~/.gtkrc-2.0. A list of GTK+ settings can be found in the GNOME library. To manually change the GTK+ theme, icons, font and font size, add the following to ~/.gtkrc-2.0:

GTK+ 3.x

If you use Xfce 4.8, both GTK+ 3.x and GTK+ 2.x themes can be managed by Appearance tool. Go to Settings-->Appearance. If selected style has both GTK+ 2.x and GTK+ 3.x themes, they will be used. If selected style has only GTK+ 2.x theme, it will be used for GTK+ 2.x applications and (ugly) defaults will be used for GTK+ 3.x applications. If selected style has only GTK+ 3.x theme, it will be used for GTK+ 3.x applications and (ugly) defaults will be used for GTK+ 2.x applications. Thus for uniform UI appearance and best experience one can use style that has both GTK+ 2.x and GTK+ 3.x themes. Search packages and AUR. One example of this is theme clearwaita-gtk-themeAUR.

If you use a GTK+ 2.x based DE, like Xfce, LXDE, gnome-tweak-tool won't work; see FS#23644. You need to installlibrsvg, and set your theme manually in $XDG_CONFIG_HOME/gtk-3.0/settings.ini (this is usually ~/.config/gtk-3.0/settings.ini. An example settings.ini file:

Note: There probably are other themes. Some of these themes are available in the AUR. Also, some of them are not usable as is for displaying a GTK+ 2.x panel (light text over light background), so you need to use the provided panel background.

GTK+ and Qt

If you have GTK+ and Qt (KDE) applications on your desktop then you know that their looks do not blend well. If you wish to make your GTK+ styles match your Qt styles please read Uniform Look for Qt and GTK Applications.

Configuration file

Note: See the GtkSettings properties in the GTK+ programming reference manual for the full list of GTK configuration options.

The purpose of this section is to collect GTK+ configuration settings which can e.g. be used within ~/.gtkrc-2.0.

Enabling Customizable Keyboard Shortcuts

You can customize your GTK+ applications' keyboard shortcuts (those are called accelerators in GTK+ terminology) by hovering your mouse over a menu item and pressing your desired key combination. However, this feature is disabled by default. To enable it, set

gtk-can-change-accels = 1

Speed up your GNOME menu

This setting controls the delay between you pointing the mouse at a menu and that menu opening in GNOME. Change this to a setting you prefer. I guess the number is in milliseconds, e.g. 250 being a quarter of a second.

gtk-menu-popup-delay = 0

Reduce widget sizes

If you have a small screen or you just do not like big icons and widgets, you can resize things easily.
To have icons without text in toolbars, use