Bug 1204021

Summary: Some QT5 (python3 ?) apps (hplip settings + GOG games installer) with Gnome dark theme enabled are unusable on Gnome (see screenshots)
Product: [openSUSE] openSUSE Tumbleweed Reporter: C J <c.j>
Component: GNOMEAssignee: E-mail List <gnome-bugs>
Status: RESOLVED UPSTREAM QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: luc14n0
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: hplip dark theme bug on Gnome
GOG games installer dark theme bug on Gnome

Description C J 2022-10-04 20:18:54 UTC
Created attachment 861970 [details]
hplip dark theme bug on Gnome

Added 2 screenshots with a QT dark theme bug on Gnome:

1. hplip settings (can't read the text and button labels)
2. GOG games installer (same problem)

Thanks.
Comment 1 C J 2022-10-04 20:19:25 UTC
Created attachment 861971 [details]
GOG games installer dark theme bug on Gnome
Comment 2 Luciano Santos 2022-10-05 04:16:12 UTC
Can you tell me if using "QT_STYLE_OVERRIDE=Adwaita-Dark" to call those apps fix them, like suggested here [1]?


[1] https://forum.manjaro.org/t/some-apps-qt-based-are-in-dark-mode-and-text-is-unreadable/81492
Comment 3 C J 2022-10-05 20:37:31 UTC
(In reply to Luciano Santos from comment #2)
> Can you tell me if using "QT_STYLE_OVERRIDE=Adwaita-Dark" to call those apps
> fix them, like suggested here [1]?
> 
> 
> [1]
> https://forum.manjaro.org/t/some-apps-qt-based-are-in-dark-mode-and-text-is-
> unreadable/81492

1. This doesn't fix the GOG Games installer.

2. But regarding hp-systray (from hplip):

a) This app is automatically launched on login, so I don't know how to start it with this variable.

BUT:
Quitting hp-systray and starting it again from gnome-terminal : IT WORKS (only with "hp-systray", no variable needed

Conclusion:

1. hp-systray : it seems the initialization of the theme/variable is not done soon enough after login. Quitting the app and opening again fixes the QT theme.

2. GOG installer: no fix yet.

Thanks.
Comment 4 Luciano Santos 2022-10-06 05:12:59 UTC
OK. By any chance, did you test those applications under another environment aside from Gnome? I'm gonna prepare some VMs, is it possible for me to get one of those GOG installers?.

Being honest though, at first sight, I don't think there's much we can make to fix such issues because some of them are in the toolkit itself, in this case seems to be PyQt (e.g. for a long time Calibre and other PyQt apps had a tooltip issue where it was unreadable because the color of the font was too close with the color of the tooltip's background), but let's not rush to conclusions just yet.
Comment 5 Luciano Santos 2022-10-06 05:19:13 UTC
I just saw your email with the GOG installer.
Comment 6 C J 2022-10-06 13:21:52 UTC
(In reply to Luciano Santos from comment #4)
> By any chance, did you test those applications under another environment
> aside from Gnome?

hp-systray settings (hplip) was fine on KDE.

GOG installer: I also remember it being fine on KDE. (but this should be tested again to be sure).

Many thanks.
Comment 7 Luciano Santos 2022-10-07 01:49:32 UTC
Actually now I'm more interested in learning how it looks like without Adwaita-qt in the middle.
Comment 8 C J 2023-01-21 23:07:01 UTC
After some more tests:

1. This bug doesn't appear on wayland (with AMD).

2. It appears on X11 (with nvidia)
Comment 9 C J 2023-08-24 17:18:11 UTC
As per the comment it's an upstream issue.