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 773767 - Should support "alpha" attr in <span> without expecting foreground color
Should support "alpha" attr in <span> without expecting foreground color
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: coretext
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-quartz maintainers
pango-maint
: 780960 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-11-01 00:04 UTC by gnome.vrb
Modified: 2017-04-08 04:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
attributes: Make alpha work without color (1.95 KB, patch)
2017-04-08 02:58 UTC, Matthias Clasen
committed Details | Review

Description gnome.vrb 2016-11-01 00:04:59 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.
Comment 1 Matthias Clasen 2017-04-08 02:50:55 UTC
*** Bug 780960 has been marked as a duplicate of this bug. ***
Comment 2 Matthias Clasen 2017-04-08 02:58:12 UTC
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.
Comment 3 Matthias Clasen 2017-04-08 04:44:04 UTC
Attachment 349515 [details] pushed as 97fc6fb - attributes: Make alpha work without color