st: Forward CSS foreground alpha as a PangoAttribute to text
Let the PangoRenderer handle this. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2504
This commit is contained in:
parent
702417ce83
commit
73472ba6a7
@ -132,6 +132,12 @@ _st_set_text_from_style (ClutterText *text,
|
||||
color.blue * 255);
|
||||
pango_attr_list_insert (attribs, foreground);
|
||||
|
||||
if (color.alpha != 255)
|
||||
{
|
||||
PangoAttribute *alpha = pango_attr_foreground_alpha_new (color.alpha * 255);
|
||||
pango_attr_list_insert (attribs, alpha);
|
||||
}
|
||||
|
||||
decoration = st_theme_node_get_text_decoration (theme_node);
|
||||
if (decoration)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user