41

Is there a way to make KDE applications (like digiKam) look native in GNOME?

Lincity
  • 25,371

3 Answers3

20

First you need the KDE's "System settings" application by installing systemsettings from the Software Center.

Search the dash for System settings and launch it . Then make the following changes:

  • under Style → Applications → Widget style, select GTK+
  • under Colors, select the colours to match your GTK theme or download the Ambiance colour scheme .
  • under Icons → Theme, select the icon theme you are using in GTK apps
  • under Fonts select "Ubuntu", size 11
Zanna
  • 70,465
Ilias
  • 1,326
  • 8
    Shouldn't be that configuration default in ubuntu? It would look much better, and less uncompatible. Any reason why it's not default? – Rafał Cieślak Feb 04 '11 at 17:37
  • 4
    @rafalcieslak feel free to ask a new question :) – 8128 Feb 05 '11 at 07:45
  • 4
    It's probably better to suggest installing the QT-4 configurator instead of the KDE Systemsettings manager - since the QT configurator does the same job for this case and has less dependencies. – RolandiXor Apr 17 '11 at 23:29
  • @Alaukik: relax dude... and actually I think you're wrong cause I've used QT's configurator in the past for the same purpose. – RolandiXor Apr 18 '11 at 16:37
  • 1
    The package @RolandiXor suggests is called qt4-qtconfig. – Tobu Sep 08 '13 at 21:38
  • 3
    The menus described in this answer do not exist in the systemsettings applications. Moreover, this application is well known to have no impact on the KDE applications on Ubuntu. – Luís de Sousa Sep 24 '19 at 06:38
  • This does not work. The app is just blank and broken in Ubuntu 22.04 – Richard Sep 24 '22 at 14:41
9

Currently using Ubuntu 22.04. The following solution is applied to my system and has been tested on fontmatrix, that is QT5 app.

You can apply QT styles that recreate GTK look and feel via the packages qt5-style-kvantum (theme manager) and qt5-style-kvantum-themes (collection of styles). To install them, run the command:

sudo apt install qt5-style-kvantum qt5-style-kvantum-themes

Then, you need to tell to your system to use kvantum style for QT5 apps. This is performed by setting the QT_STYLE_OVERRIDE variable in your .profile file.

You have two alternative ways.

Alternative 1

  • run echo "export QT_STYLE_OVERRIDE=kvantum" >> $HOME/.profile

Alternative 2:

  • open the file with gedit $HOME/.profile
  • add the line (if not present) export QT_STYLE_OVERRIDE=kvantum
  • save the file.

After changing the .profile file, you have to logout from your account and login, then it will be sourced automatically.

Now, open the Kvantum Manager app from the app-grid menu:

  • Click on the submenu "Change/Delete Theme"
  • Select "KvYaru" from "Select Menu".
  • Click "Use this theme" button.

Kvantum Manager

This is the way to activate a style that resembles the default Ubuntu theme, called Yaru. By default, a lots of themes are installed, so you can choose what you prefer.

The Kvantum project is available at this GitHub page.

Lorenz Keel
  • 8,905
8

In Ubuntu 18.04, what worked for me was:

sudo apt-get install qt5-style-plugins

This is taken from the ArchLinux documentation. It also recommends setting the QT_QPA_PLATFORMTHEME=gtk2 environment variable, but I did not need that.