Insensitive (disabled) toolbar icons in GTK3 are not dimmed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu theme |
Fix Released
|
Undecided
|
Martin Wimpress | ||
Wireshark |
Invalid
|
Undecided
|
Unassigned | ||
remmina |
Invalid
|
Undecided
|
Unassigned | ||
ubuntu-themes (Ubuntu) |
Fix Released
|
Medium
|
Martin Wimpress | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
Disabled (GTK 3.20) and Insensitive (GTK <= 3.18) icons are not dimmed, therefore there is no visual indication that an icon in the toolbar is inactionable.
[ Test Case ]
This issue can be observed in Xenial and Yakkety.
Install `gtk-3-examples` and run `gtk3-widget-
After applying the relevant merge proposal (see below), the disabled/
[ Regression Potential ]
None.
[ Other Info ]
This issue can also be reproduced on Xenial and Yakkety using:
* Remmina (from the archive)
* Wireshark (from the archive)
* Eclipse (downloaded)
To reproduce with Eclipse, Eclipse has to be downloaded since the version in the archive uses GTK2+ for styling, and dims insensitive icons correctly.
* Download a recent Eclipse https:/
* Extract and execute the "eclipse" executable
* In the toolbar, several icons look enabled even though they are not. For example the Save icon (Floppy).
Related branches
- Iain Lane: Approve
-
Diff: 23 lines (+2/-0)2 files modifiedAmbiance/gtk-3.0/gtk-widgets.css (+1/-0)
Radiance/gtk-3.0/gtk-widgets.css (+1/-0)
- Iain Lane: Disapprove
-
Diff: 23 lines (+2/-0)2 files modifiedAmbiance/gtk-3.0/gtk-widgets.css (+1/-0)
Radiance/gtk-3.0/gtk-widgets.css (+1/-0)
- Iain Lane: Approve
-
Diff: 47 lines (+4/-0)4 files modifiedAmbiance/gtk-3.0/gtk-widgets.css (+1/-0)
Ambiance/gtk-3.20/gtk-widgets.css (+1/-0)
Radiance/gtk-3.0/gtk-widgets.css (+1/-0)
Radiance/gtk-3.20/gtk-widgets.css (+1/-0)
- Ubuntu Artwork Packagers: Pending requested
-
Diff: 23 lines (+2/-0)2 files modifiedAmbiance/gtk-3.0/gtk-widgets.css (+1/-0)
Radiance/gtk-3.0/gtk-widgets.css (+1/-0)
- Ubuntu Artwork Packagers: Pending requested
-
Diff: 143 lines (+66/-2) (has conflicts)6 files modifiedAmbiance/gtk-3.0/gtk-widgets-borders.css (+6/-0)
Ambiance/gtk-3.0/gtk-widgets.css (+1/-0)
Radiance/gtk-3.0/gtk-widgets-borders.css (+6/-0)
Radiance/gtk-3.0/gtk-widgets.css (+1/-0)
debian/changelog (+50/-0)
debian/control (+2/-2)
summary: |
- Insensitive (disabled) toolbar icons in Eclipse are not dimmed + Insensitive (disabled) toolbar icons in GTK3 are not dimmed |
Changed in ubuntu-themes: | |
assignee: | nobody → Martin Wimpress (flexiondotorg) |
Changed in ubuntu-themes (Ubuntu): | |
assignee: | nobody → Martin Wimpress (flexiondotorg) |
importance: | Undecided → Medium |
status: | New → In Progress |
description: | updated |
Changed in remmina: | |
status: | New → Invalid |
Changed in wireshark: | |
status: | New → Invalid |
Changed in ubuntu-themes: | |
status: | New → In Progress |
Changed in ubuntu-themes: | |
status: | In Progress → Fix Released |
I have bisected the GTK code to find what commit introduced the change in behavior:
commit 99c4f2dd3947c29 0e3ea19153202be 3e43b22add
Date: Wed Mar 18 15:22:09 2015 +0100
render: Make image effect not depend on state
Instead rely on -gtk-image-effect only. Adwaita should already work this
way.
Relying on state was a leftover feature from the GTK 2 days.
Since this change, it is required to use "-gtk-image-effect: dim;" for insensitive elements. Also, in GTK 3.20+, the attribute was renamed to "-gtk-icon-effect", see https:/ /mail.gnome. org/archives/ commits- list/2015- December/ msg00151. html
So I suggest to add both gtk-image-effect and gtk-icon-effect to fix the issue in 16.04 (GTK 3.18) and for 16.10 (GTK 3.20?). I will post a patch to achieve that.