Bug 383431

Summary: Color themes wrongly applied to non-qt applications (video demo inside)
Product: [Plasma] Breeze Reporter: Andrew Shark <ashark>
Component: gtk themeAssignee: scionicspectre
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, bugseforuns, nate, porton
Priority: NOR    
Version: 5.10.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://www.youtube.com/watch?v=M3hswOk7qZA
Latest Commit: Version Fixed In:

Description Andrew Shark 2017-08-12 15:05:26 UTC
Usually when you start gimp (for example when opening some xcf from dolphin), it shows tool tips wrong way. It uses white text and white background of rectangle.
But when you start gimp using start menu or alt+f2 menu, then it is working normally (white text on dark rectangle).

Also, if you disable checkbox "Apply this colors to non-qt applications" in color settings, then gimp is always working normal.

Video demonstration included.

My current applications versions:
archlinux 4.12.4-1-ARCH 64-bit
gimp 2.8.22
kde plasma 5.10.4
kde frameworks 5.36.0
Qt 5.9.1
Comment 1 Aleix Pol 2017-08-13 18:52:09 UTC
Please note that you're reporting the issue to kde-gtk-config.
Comment 2 Aleix Pol 2017-08-13 18:52:42 UTC
That is the configuration module for GTK integration
Comment 3 Nate Graham 2017-08-13 19:48:34 UTC
Nevertheless, the issue is real. Moving to Breeze.
Comment 4 scionicspectre 2017-08-13 22:05:15 UTC
It has been known for a while that recent versions of GTK can no longer handle whatever 'Apply colors to non-Qt applications' is injecting. Only Oxygen-GTK on GTK2 can utilize this ever since theme engine support was removed from GTK3, so it's technically a configuration and/or GTK bug. That is to say, we as theme authors can do nothing about this.

We have been working intermittently on a script to dynamically regenerate the theme according to color schemes, so when that is available, the color scheme dialog should check for either Breeze-GTK or Oxygen-GTK and trigger that script when Breeze is selected.

In fact, it would probably be best to work some of this in before the completed scripts are in master. That is, the dialog should only apply the traditional setting when:

1. 'Apply colors to non-Qt applications' is checked.
2. Oxygen-GTK, QtCurve, or any other capable GTK theme is selected.

While I would love it if we could fix this bug solely in the GTK theme, any permanent fix would rely on several moving parts. As such, this issue should be moved elsewhere in the long run.
Comment 5 Nate Graham 2017-09-04 22:15:55 UTC
*** Bug 343119 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2017-10-15 03:21:41 UTC
Is there a way to programmatically detect when the GTK theme won't support this? If so, we could disable or remove the checkbox when such a theme is active.
Comment 7 Nate Graham 2017-12-06 05:48:02 UTC

*** This bug has been marked as a duplicate of bug 355540 ***