Since I upgraded to Ubuntu 21.10, some UI parts are displayed with black text on black background in LibreOffice 7.2.1.2, making them unreadable.
This is the case in particular for sheet names in Calc:
I can't find a way to fix it...
THe problem is due to the Materia-compact Gnome Theme used:
see https://github.com/nana-4/materia-theme/issues/560
Workarounds are:
use another theme alltogether
use another theme for LibreOffice only:
GTK_THEME="Adwaita"
find /usr/share/applications -name libreoffice* | xargs -i cp {} ~/.local/share/applications
find ~/.local/share/applications -name libreoffice* | xargs sed -i "s/Exec=/Exec=env GTK_THEME=$GTK_THEME /g"
Now, LibreOffice uses adwaita theme (but the window title bar still uses materia-compact, so it does not feel weird).
themesbut if you go toTools > Options > Personalisationhave you set other thanDefault look, do not use Themes?