1

I have used Okular for many years. So far it has always seamlessly integrated with whatever DE theme I have set. It has functioned like this across many different Ubuntu releases, but not the latest:

enter image description here

I have searched in the preferences menus, but can not find an obvious way to tweak Okular's theme to the DE. How can it be done?

Luís de Sousa
  • 13,227
  • 26
  • 81
  • 128

1 Answers1

1

For me installing the qt5-style-plugins and adding QT_QPA_PLATFORMTHEME=gtk2 to /etc/environment (rather than ~/.bashrc) did the trick.

stebu92
  • 214
  • I tried this but had no effect. Did you have to restart your DE? – Luís de Sousa Jan 11 '19 at 10:20
  • I do not remember exactly, but I might very well have restarted the whole computer. If I am not mistaken /etc/environment is only read at login. – stebu92 Jan 11 '19 at 12:45
  • I tried restarting the DE and rebooting the system, but still Okular does not integrate with the theme. Perhaps you did something more than this? – Luís de Sousa Jan 11 '19 at 14:43
  • I tried it again on a different PC. After performing the steps above it didn't work. I installed ´systemsettings´ (a KDE utility), but did not change anything. I then restarted and okular integrated with Gnome. I do not think the systemsettings step is necessary. – stebu92 Jan 13 '19 at 21:09
  • As you can see in the picture above, I do not work with GNome. But still strange that Okular integrates with GNome and not with Unity. – Luís de Sousa Jan 14 '19 at 09:10
  • Ah.. I didn't realise that. I thought Gnome was default on 18.04. – stebu92 Jan 14 '19 at 21:35
  • I now had the opportunity of testing this solution with the GNome DE: it does not work either. I expect a solution that works on one to also function on the other. There must be still something missing from this answer. – Luís de Sousa Jan 16 '19 at 15:24