[gnome-shell] st-entry: Support a different color for selected text



commit f524138a649e3f700f71dfcadb411e290b9e988d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Mar 2 16:18:42 2011 -0500

    st-entry: Support a different color for selected text
    
    This should improve readability in text entries where the text
    color is very close to the color of the selection.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=643768

 src/st/st-entry.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-entry.c b/src/st/st-entry.c
index d70475d..d967824 100644
--- a/src/st/st-entry.c
+++ b/src/st/st-entry.c
@@ -209,6 +209,9 @@ st_entry_style_changed (StWidget *self)
   if (st_theme_node_lookup_color (theme_node, "selection-background-color", FALSE, &color))
     clutter_text_set_selection_color (CLUTTER_TEXT (priv->entry), &color);
 
+  if (st_theme_node_lookup_color (theme_node, "selected-color", FALSE, &color))
+    clutter_text_set_selected_text_color (CLUTTER_TEXT (priv->entry), &color);
+
   font = st_theme_node_get_font (theme_node);
   font_string = pango_font_description_to_string (font);
   clutter_text_set_font_name (CLUTTER_TEXT (priv->entry), font_string);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]