themix-project/oomox-gtk-theme

GTK2/GTK3 button text color in LibreOffice

thewaiter opened this issue · 12 comments

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

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

(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

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

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

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

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

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

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

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

with thunar i can't reproduce the issue:

2019-09-10--1568140742_1079x1227_scrot

please double-check with the latest version of oomox theme

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.

@nana-4 thanks for looking into this!