mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Merge branch 'support-selected-color-again' into 'main'
Ensure that St.Entry's `selected-color` CSS property is honored See merge request GNOME/gnome-shell!2260
This commit is contained in:
commit
e87b644802
1 changed files with 4 additions and 8 deletions
|
|
@ -115,23 +115,19 @@ _st_set_text_from_style (ClutterText *text,
|
|||
StTextDecoration decoration;
|
||||
PangoAttrList *attribs = NULL;
|
||||
const PangoFontDescription *font;
|
||||
PangoAttribute *foreground;
|
||||
StTextAlign align;
|
||||
gdouble spacing;
|
||||
gchar *font_features;
|
||||
|
||||
st_theme_node_get_foreground_color (theme_node, &color);
|
||||
clutter_text_set_color (text, &color);
|
||||
clutter_text_set_cursor_color (text, &color);
|
||||
|
||||
font = st_theme_node_get_font (theme_node);
|
||||
clutter_text_set_font_description (text, (PangoFontDescription *) font);
|
||||
|
||||
attribs = pango_attr_list_new ();
|
||||
|
||||
st_theme_node_get_foreground_color (theme_node, &color);
|
||||
clutter_text_set_cursor_color (text, &color);
|
||||
foreground = pango_attr_foreground_new (color.red * 255,
|
||||
color.green * 255,
|
||||
color.blue * 255);
|
||||
pango_attr_list_insert (attribs, foreground);
|
||||
|
||||
if (color.alpha != 255)
|
||||
{
|
||||
PangoAttribute *alpha;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue