GNOME Bugzilla – Bug 773767
Should support "alpha" attr in <span> without expecting foreground color
Last modified: 2017-04-08 04:44:08 UTC
Currently, in <span> tag "foreground" is mandatory attr, if "alpha" is used. 1. "foreground color without alpha" + separate "alpha" attr works 2. "foreground color with alpha" works. 3. "alpha" attr alone doesn't work without "foreground". I tried adjusting the alpha attr for a tree view column displaying text ( Refer https://bugzilla.gnome.org/show_bug.cgi?id=773729 ). Getting the text color right, when the row is selected is a bit non-trivial ( I might be missing something here as well ). This issue would get fixed if pango can get the current theme's text color ( for selected and non selected entries ), and apply alpha on that, without expecting the user to provide the foreground color.
*** Bug 780960 has been marked as a duplicate of this bug. ***
Created attachment 349515 [details] [review] attributes: Make alpha work without color Improve the behavior of the cairo renderer to take alpha into account even if no color specified.
Attachment 349515 [details] pushed as 97fc6fb - attributes: Make alpha work without color