themix-project / oomox-gtk-theme

Oomox-gtk-theme is a fork of Numix-gtk-theme with slightly different visual design choices and more customization capabilities. It can be used in Themix/Oomox app.
https://github.com/themix-project/oomox
GNU General Public License v3.0
42 stars 8 forks source link

GTK2/GTK3 button text color in LibreOffice #64

Closed thewaiter closed 4 years ago

thewaiter commented 4 years ago

Hello guys

I am using oomox for our Bodhi Linux distribution and I am pretty happy that is an app like this to help me maintain our themes. Anyway I see some troubles with gtk 3.20. Look at the picture. Firefox in the background has fine button text color but Writer/Libre Office does not. Why? Have I missed some setting?

https://i.imgur.com/t0wXmpI.jpg https://i.imgur.com/eG9kZqi.jpg

Thanx for your soon reply and excuse me in case I overlooked the same issue which had been responsed.

Best regards

Stefan

actionless commented 4 years ago

try switching between gtk2 and gtk3 VCL-s in libreoffice, oomox gtk theme doesn't have any style overrides specific to libreoffice

actionless commented 4 years ago

(actually have one in gtk2 theme, but i don't think it's related to your problem:)

style "performance-fix" {
    engine "murrine" {
        textstyle = 0
    }
}

widget "*OOoFixed*" style "performance-fix" # Openoffice/Libreoffice
actionless commented 4 years ago

yup, i can reproduce the problem with their gtk3 VCL, seems like a problem in that VCL itself

unfortunately gtk3 inspector is not working in libreoffice, so i can't come up with any workaround for this

2019-09-10--1568125860_1925x1199_scrot

actionless commented 4 years ago

hm, i've actually found a way to force GTK inspector without using the hotkeys:

$ env GTK_THEME=oomox-unit_01c GTK_DEBUG=interactive libreoffice

however inspector showing some weird output (it just showing whole window as a big single widget instead of showing buttons, input fields and so on):

2019-09-10--1568126316_3840x2160_scrot

actionless commented 4 years ago

also, just out of curiosity i've tried gtk2 VCL, and it have the same issue (button labels using color of normal labels):

2019-09-10--1568126807_3536x1123_scrot

actionless commented 4 years ago

at this point it just feels like a question/bug to report to developers of GTK2 and GTK3 LibreOffice's VCLs

thewaiter commented 4 years ago

Hello there and thanx for your attention. I probably need to ask those developers :(

actionless commented 4 years ago

also if you know some gtk3 themes in which such combination (dark labels on background and light labels on buttons or the opposite) are working fine there in libreoffice -- we could try to analyze those themes

thewaiter commented 4 years ago

Just forced to use Libre Office without GTK 3. It was simple, just purge libreoffice-gtk3. Anyway the same situation with Thunar and combobox. Look at the picture. Maybe I am wrong but what if oomox is buggy? I am using v 1.11. https://i.imgur.com/HnjYFfL.jpg

actionless commented 4 years ago

with thunar i can't reproduce the issue:

2019-09-10--1568140742_1079x1227_scrot

please double-check with the latest version of oomox theme

nana-4 commented 4 years ago

I can reproduce the LibreOffice issue even with other theme. It seems LibreOffice reads the text color from .background, not button.

When I manually set button { color: red; } (in Materia):

image

When I manually set .background { color: red; }:

image

This seems to be an upstream LibreOffice bug.

actionless commented 4 years ago

@nana-4 thanks for looking into this!