10

Okular has an odd choice of font and background colors in some places and this makes it difficult to read some text.

I looked at the settings and searched online but couldn't find anything on changing this.

What can I do?

  • Do you want to change the black theme in Okular? – Archisman Panigrahi Aug 08 '21 at 07:41
  • @ArchismanPanigrahi No. I want text like "Zoom Out" and "Show sidebar" to use a color that is the opposite of the background they are in so they are easier to read. E.g.: White. –  Aug 08 '21 at 10:24

1 Answers1

16

You need to change the theme for Qt apps.

This can be achieved in two ways, with qt5ct and kvantum (don't use both of them together).

Kvantum

Install Kvantum with

sudo apt install qt5-style-kvantum

Now make KVantum as the default theme manager for Qt apps.

echo "export QT_STYLE_OVERRIDE=kvantum" >> ~/.profile

Reboot.

Now open Kvantum Manager, and apply a suitable theme. enter image description here

Qt5ct

Install qt5ct with

sudo apt install qt5ct

In Ubuntu 22.04, you will also have to install qt5-style-plugins

sudo apt install qt5-style-plugins

Now make qt5ct the default theme manager for Qt apps.

echo "export QT_QPA_PLATFORMTHEME="qt5ct"" >> ~/.profile

Reboot.

Now open qt5ct and choose style gtk2. enter image description here

  • 2
    This did it! Thank you very much for writing this up and making it detailed and friendly. –  Aug 09 '21 at 21:09
  • 1
    This worked, but I need to add a note here. Mine was failing at first, turns out that this line of export QT_QPA_PLATFORMTHEME=gtk2 needed to be commented out in the /etc/X11/Xsession.d/56xubuntu-session on my Xfce4 (Xubuntu) installation. Once it was commented out and rebooted the system, "dark" mode in Virtualbox worked great! – Terrance Apr 04 '24 at 00:50