How to enable light theme (or any other GTK themes) on Libreoffice for Gnome

My default GTK theme is dark, which then made my Libreoffice in my computer uses dark theme as well. I found the method to use light theme for Libreoffice on this reddit post.

First, copy the .desktop file for one of Libreoffice app (I use writer) to your local applications.

cp /usr/share/applications/libreoffice-writer.desktop ~/.local/share/applications/libreoffice-writer.desktop

Then, change the original desktop file’s name to something else.

sudo mv /usr/share/applications/libreoffice-writer.desktop /usr/share/applications/libreoffice-writer.desktop.bak

Now open the .desktop in your .local directory using any text editor and edit the Exec line to this.

Exec=env GTK_THEME=Adwaita:light libreoffice --writer

And done!

If you want to change the other app like calc or impress, use their respective command, such as libreoffice --calc or libreoffice --impress.

Then if you want to use other theme, you just replace the GTK_THEME variable to NameOfTheme:light or NameOfTheme:dark.

To see what themes are available, they are mainly saved in the /usr/share/themes/ directory.

ls /usr/share/themes/

I am a Computer System student at Universitas Sriwijaya. I like progamming, tinkering my computer software, and learning new technology!