After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 706009 - Wrong text color for insensitive GtkLabels
Wrong text color for insensitive GtkLabels
Status: RESOLVED FIXED
Product: gnome-themes-standard
Classification: Core
Component: Adwaita GTK3 theme
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-themes-standard-maint
gnome-themes-standard-maint
Depends on:
Blocks: 694985
 
 
Reported: 2013-08-14 17:07 UTC by Kalev Lember
Modified: 2013-08-20 00:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
labels: properly set the insensitive color (953 bytes, patch)
2013-08-14 17:08 UTC, Kalev Lember
none Details | Review
screenshot before (519.24 KB, image/png)
2013-08-18 17:51 UTC, Andreas Nilsson
  Details
gtk3: fix propagation for insensitive colors (3.88 KB, patch)
2013-08-19 23:52 UTC, Cosimo Cecchi
committed Details | Review

Description Kalev Lember 2013-08-14 17:07:19 UTC
With gnome-themes-standard git master, insensitive GtkLabels aren't themed properly. gtk_widget_set_sensitive(label, FALSE) should turn the text gray, but it doesn't seem to affect the text color at all.

This looks like a regression from https://git.gnome.org/browse/gnome-themes-standard/commit/?id=4d14019236d1131b9bc71a376306170f4bb15375 which started overriding insensitive GtkLabel background color.
Comment 1 Kalev Lember 2013-08-14 17:08:48 UTC
Created attachment 251633 [details] [review]
labels: properly set the insensitive color

This fixes a fallout from commit 4d14019236d1131b9bc71a376306170f4bb15375
that started overriding the background-color property for insensitive
labels without setting the text color.
Comment 2 Andreas Nilsson 2013-08-18 17:51:10 UTC
Created attachment 252145 [details]
screenshot before
Comment 3 Cosimo Cecchi 2013-08-18 17:58:28 UTC
I don't think this patch is correct - I believe this is a regression of the changes in state propagation that happened in GTK this cycle, and the theme didn't correctly adapt.
I have a tentative alternative patch for this, will attach it here shortly.
Comment 4 Cosimo Cecchi 2013-08-19 23:52:31 UTC
Created attachment 252320 [details] [review]
gtk3: fix propagation for insensitive colors

Since 30609ba766dd055f41002dcb813225d619b1d951 we stopped using
wildcard selectors to propagate insensitive state colors. Turns out that
part of the commit was wrong, as typically the insensitive state is set
on a widget down the hierarchy, and not the toplevel, so relying on
inheritance from .background won't work.

This commit partially reverts some of the changes from
30609ba766dd055f41002dcb813225d619b1d951 to make insensitive colors work
correctly again.

--

Kalev, can you check this patch fixes your issue as well? Thanks.
Comment 5 Kalev Lember 2013-08-20 00:04:44 UTC
Review of attachment 252320 [details] [review]:

I can confirm it fixes my issue. Thanks Cosimo!
Comment 6 Cosimo Cecchi 2013-08-20 00:08:32 UTC
Thanks, I pushed this to master now.

Attachment 252320 [details] pushed as 5362ef1 - gtk3: fix propagation for insensitive colors