LibreOffice toolbar background color uses a white to dark gradient. (Only occurs with gtk4)

Im using LibreOffice in Hyprland (Manually installed from scratch). Recently I learned that I can use GTK4 with LibreOffice. But whenever I switched to it, the toolbar background color changes to a white to dark gradient as seen in this image.

https://imgur.com/XTFhFsF

I have searched a lot to fix this problem, but cant find a fix. Occurs with libadwaita, adw-gtk-theme, breeze-gtk, mostly every gtk4 theme. I also have noticed that it only occurs with the dark theme. light theme works fine.

I just figured out that the gradient background comes from libreoffice’s vcl backend, not gtk4. When I launch libreoffice in the gen mode (SAL_USE_VCLPLUGIN=gen), I can see the exact same gradient. Since the gradient logc is hardcoded in the app’s source, I don’t think it can be fixed easily. And the arch version of libreoffice doesn’t include the “Personalization” tab in settings. So that makes it more harder.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.