8

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?

Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212
  • 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

14

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

Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212
  • 2
    This did it! Thank you very much for writing this up and making it detailed and friendly. –  Aug 09 '21 at 21:09