thesquash / gtk-theme-raleigh

A GTK+ 3 version of the old Raleigh theme for GTK+ 2
Other
62 stars 6 forks source link

LiberOffice Black Backgrounds #7

Open ahmed-alamer opened 1 year ago

ahmed-alamer commented 1 year ago

Overview

In LibreOffice Calc, I have noticed that the formula bar and the select sheet tab has black background.

Similar behavior as well in LibreOffice Impress where the backgrounds are mostly black, particularly in the new slide wizard and the slides view on the left side panel.

Machine Specs

OS: Ubuntu MATE 22.04.1 LTS Kernel: 5.15.0-46-generic Mate Version: 1.26.0 Raleigh Theme Version: 1.2.1

Screenshots

LibreOffice Calc

Formula Input Field

image

Sheets Tab

image

LibreOffice Impress

image

emirror-de commented 1 year ago

I am experiencing the same issue on Debian when using light theme.

thesquash commented 1 year ago

I can confirm it too. I'm probably just missing another color name / style class definition, just like with the Terminix(?) header bar issue.

You know, I really hate applications that rely on specific features of the official Adwaita theme. It's no wonder there's a push by applications developers to illegalize GTK theming. But what I hate even more? When applications don't disclose what style classes they expect the theme to have theme code for. And on top of that, the worst offenders are in huge, heavy, bloated applications like LibreOffice, where a guy like me has extreme difficulty finding the place in the code where the application uses some style class or another. How can there be so many themes on the Internet if maintaining them is so tricky?

I'll have to play around and find the appropriate theme code I need to add.

jenav commented 1 year ago

Just for references: https://github.com/nana-4/materia-theme/issues/560

There's a workaround at least. One could use a somewhat similar theme, like Chicago95 for example.

Btw, thanks for this theme, i love it!

commandlinegamer commented 1 year ago

Looking through other themes I found a workaround, though it may affect other GTK programs.

In the file Raleigh/gtk-3.24/main.css, just after the first section I added an entry so the beginning of the file now looks like this:

*
{
        -gtk-icon-style: regular;
        color: @fg_color;
}

.view
{
  background-color: @light_base_color;
}

If you find it changes other apps, then it can be applied to LibreOffice only. Leave the current Raleigh theme unchanged and make a carbon-copy of it, giving it a different name (something like Raleigh_LO for example). Edit the main.css file in that version only. Then launch LibreOffice with the following environment variable (example uses Calc):

GTK_THEME=Raleigh_LO libreoffice --calc

There might be another way to fix it. Edit the LibreOffice source, and give the various widgets involved names, then they can be be specified in the CSS. :-)