Materia-theme: LibreOffice doesn't look good

Created on 6 Jun 2017  路  6Comments  路  Source: nana-4/materia-theme

Screenshot from #88
image

Unfortunately, LibreOffice using GTK3 doesn't render widgets correctly (especially drop shadow).

Also it seems not easy to apply style changes to LibreOffice without affecting other apps.

bug upstream issue

Most helpful comment

Captura de tela de 2019-07-16 10-55-50
Hi, I have this problem with LibreOffice 6.2.4.2.0 and materia, characters of style, font and size are overlapping each other.
It also happens in Calc and Impress.
Captura de tela de 2019-07-16 11-09-58
It seems it doesn't matter which variant (compact, light, dark). Choosing another theme fixes it, and changing back to materia makes it look like this again.
Using Manjaro Cinnamon (4.2.0) and latest materia-gtk-theme from distro's official repository (20190315-1).

All 6 comments

Captura de tela de 2019-07-16 10-55-50
Hi, I have this problem with LibreOffice 6.2.4.2.0 and materia, characters of style, font and size are overlapping each other.
It also happens in Calc and Impress.
Captura de tela de 2019-07-16 11-09-58
It seems it doesn't matter which variant (compact, light, dark). Choosing another theme fixes it, and changing back to materia makes it look like this again.
Using Manjaro Cinnamon (4.2.0) and latest materia-gtk-theme from distro's official repository (20190315-1).

I have the same issue in Libreoffice.

If it helps, it seems to me that in the combo list boxes for selecting font, style and size the background is not cleared before redrawing, so that list elements and list selection overlap are not cleared and new selections are drawn over the older ones.

Using Ubuntu Studio latest, and have tried with various releases of materia theme.

Same issue - how to fix? I need this change in my own theme based on materia

@nana-4 is it because of rounded corners?

Sorry for the late reply, I didn't have enough time to check it.

It's because we introduced a translucent background-color to the entries. (Plus, LibreOffice's poor integration with GTK, of course.) Apparently LibreOffice apps draw text even under the entries.

For now, the best workaround (I think) is to apply a different theme only to LibreOffice apps, as introduced here.

Here is the command lines that do it all at once:

# A theme applied to LibreOffice apps.
# You can specify a different theme such as "Adwaita-dark".
GTK_THEME="Adwaita"

# Copy the original "libreoffice-*.desktop" files to the local directory.
find /usr/share/applications -name libreoffice* | xargs -i cp {} ~/.local/share/applications

# Insert "env GTK_THEME=foo " into the each copied files.
find ~/.local/share/applications -name libreoffice* | xargs sed -i "s/Exec=/Exec=env GTK_THEME=$GTK_THEME /g"

Thanks! I do know how to change the individual application's theme, using a lot of methods. However, is there a possibility that this will be fixed soon? To be honest, I really like my own theme: https://codeberg.org/gsbhasin84/Materiav2 and I really want to use it with LibreOffice. Do you know of any material based themes that don't have this problem so that I can use it as my fallback for LO until this issue is fixed? Also would the kde or qt backends for LO work? I don't have access to my PC so I can't check right now, unfortunately. However if you can, that would be great @nana-4

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tuberry picture tuberry  路  3Comments

rudrab picture rudrab  路  4Comments

nana-4 picture nana-4  路  4Comments

whnr picture whnr  路  5Comments

MischievousTomato picture MischievousTomato  路  5Comments