Bug 362889 - Wrong font color in menu
Summary: Wrong font color in menu
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.6.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-10 12:58 UTC by Konrad Mosoń
Modified: 2021-12-06 04:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of problem (162.40 KB, image/png)
2016-05-10 12:59 UTC, Konrad Mosoń
Details
xprop spotify (1.07 KB, text/plain)
2016-05-11 08:49 UTC, Konrad Mosoń
Details
xprop konsole (59.38 KB, text/plain)
2016-05-11 08:50 UTC, Konrad Mosoń
Details
xprop firefox (17.63 KB, text/plain)
2016-05-11 08:50 UTC, Konrad Mosoń
Details
xprop kmail (50.79 KB, text/plain)
2016-05-11 08:51 UTC, Konrad Mosoń
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Mosoń 2016-05-10 12:58:43 UTC
When using GTK Theme inside Qt applications white font in menus in white. Except KWin popup menu. See screenshot.

Reproducible: Always

Steps to Reproduce:
1. Install GTK theme that has dark menu background + white font color. I use Archiplex (http://gnome-look.org/content/show.php?content=87617)
2. Select your GTK theme in System Settings → Application Style → GNOME Application Style (GTK) or fill ~/.gtkrc-2.0 correctly.
3. Select "GTK Style+" in System Settings → Application Style → Widget Style
4. To be sure everything is reloaded, login again.
5. Raise popup menu in Kwin decoration (right-click).

Actual Results:  
Menu font is black on dark screen.

Expected Results:  
Font should be white like in any other menus in Qt when using GTK theme.
Comment 1 Konrad Mosoń 2016-05-10 12:59:50 UTC
Created attachment 98876 [details]
Screenshot of problem
Comment 2 Thomas Lübking 2016-05-10 13:00:23 UTC
Does it "fix" when runnning "kwin_x11 --replace &" from konsole?
Comment 3 Konrad Mosoń 2016-05-10 13:01:22 UTC
No.
Comment 4 Thomas Lübking 2016-05-10 13:06:28 UTC
Smells like caused by

--------

commit 1c5e5c848062b10ede0f4d4f9ce3732052e57a04
Author: Martin Gräßlin
Date:   Mon Oct 14 07:25:27 2013 +0200

    [kwin] User Actions Menu follows Client's color scheme
    
    When the menu opens we update the QPalette to the one used by the
    Client and thus providing a more common look and feel if the window
    specified a custom color scheme.
Comment 5 Martin Flöser 2016-05-11 07:54:13 UTC
But for that the window needs to set a property. Can you please xprop an affected window?
Comment 6 Konrad Mosoń 2016-05-11 08:48:56 UTC
See attachments. This bug appears in every window. Doesn't matter if it's Google Chrome, Spotify, or KDE windows (Konsole, KMail, etc.).
Comment 7 Konrad Mosoń 2016-05-11 08:49:23 UTC
Created attachment 98897 [details]
xprop spotify
Comment 8 Konrad Mosoń 2016-05-11 08:50:12 UTC
Created attachment 98898 [details]
xprop konsole
Comment 9 Konrad Mosoń 2016-05-11 08:50:55 UTC
Created attachment 98899 [details]
xprop firefox
Comment 10 Konrad Mosoń 2016-05-11 08:51:18 UTC
Created attachment 98900 [details]
xprop kmail
Comment 11 Martin Flöser 2016-05-11 08:54:21 UTC
None of the windows has the _KDE_NET_WM_COLOR_SCHEME set. So that cannot be the source for the color.

It needs to be picked up incorrectly from somewhere.
Comment 12 Thomas Lübking 2016-05-11 10:46:07 UTC
The setPalette() calls aren't somehow conditional.
If you pass an empty palette, that will unset the palette and I could *assume* that gtk+ is like qstylesheetstyle and operates on local palettes (with an untouched global palette), ie. he gets the color scheme from Qt for the popup for rendering the text while the popup still paints the background with stuff it found in the gtkrc (but I've never tested this, the gtk+ style inherits all the issues of gtk+ theming and bright on dark isn't really supported in gtk+ anyway, there're tons of occasions with unreadable text in actual gtk+ applications)
Comment 13 kde.org 2021-11-06 16:22:05 UTC
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23?
Comment 14 Bug Janitor Service 2021-11-21 04:39:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 15 Bug Janitor Service 2021-12-06 04:38:34 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!