Uniform look for Qt and GTK apps
From The Chakra Project - Wiki
Català ─ Česky ─ Deutsch ─ Ελληνικά ─ English ─ Español ─ Français ─ Galego ─ Magyar ─ Nederlands ─ Polski ─ Русский ─ Svenska ─ Українська ─ 中文(简体) ─ 中文(繁體)
To have GTK apps integrate better into KDE do the following:
Contents |
Install GTK-Qt-Engine
pacman -Sy kdemod-extragear/kdemod-extragear-gtk-qt-engine
or
pacman -Sy kdemod-playground/kdemod-playground-gtk-qt-engine-svn
To access GTK-Qt-Engine's settings go to systemsettings > appearance. You can use GTK-Qt-Engine to change gtk theme and fonts or to make it imitate current kde theme.
GTK-Qt-Engine doesn't work well with OpenOffice, so to fix it do the following:
Set (as root):
export SAL_GTK_USE_PIXMAPPAINT=1
into /etc/profile. Or as a normal user put it in ~/.bashrc.
QtCurve
Available for qt4 (kde4), qt3 (kde3) and gtk2 in the [extra] repository, this highly-configurable style is the most popular all-arounder.
# pacman -Sy qtcurve-gtk2 qtcurve-kde3 qtcurve-kde4
To change the Qt version 3 style in KDE version 3:
Control Center (kcontrol) --> Appearance & Themes --> Style --> Widget Style = QtCurve
To change the GTK+ version 2 style in KDE version 3:
# pacman -Sy gtk-chtheme
Run it and you will be able to make your choice. You can also change the fonts. Please note that any open application must be restarted in order to view the changes. Alternatively, you can do the same with an engine, mentioned further below.
KDE file dialogs for GTK2 apps
KGtk is a wrapper script that LD_PRELOAD to force KDE file dialogs (open, save, etc) in GTK2 apps. If you use KDE and prefer it's file dialogs over GTK's then you can install kgtk from AUR. Once installed you can run GTK2 applications with kgtk-wrapper in 2 ways (using gimp in the examples).
Calling kgtk-wrapper directly and using the GTK2 binary as an arguement
/usr/local/bin/kgtk-wrapper gimp
OR
Creating a symbolic link to kgtk using the name of the GTK2 binary. Then you can run /usr/local/bin/gimp when you want to run gimp with KDE dialogs.
ln -s /usr/local/bin/kgtk-wrapper /usr/local/bin/gimp /usr/local/bin/gimp
Firefox
To change the appearance of the file selector: type "about:config" into Firefox's URL bar and type "platform" into the display filter below. Make sure that the value for
ui.allow_platform_file_picker
is set to false.
For downloads, you may want to consider installing the flashgot add-on. It lets you use Kget as a download manager.
Sources and external links:
http://forum.kde.org/how-to-integrate-firefox-into-kde-t-17786.html
http://www.kde-look.org/content/show.php/KGtk+(Use+KDE+Dialogs+in+Gtk+Apps)?content=36077
http://wiki.archlinux.org/index.php/Uniform_look_for_QT_and_GTK_apps