From c5a8584c3e33cc9b45d1b3b9baa54f0da5fa4d17 Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Sun, 9 Jan 2011 23:10:47 +0100 Subject: [PATCH] CSS styles for the selection in a TextView. https://bugzilla.gnome.org/show_bug.cgi?id=639106 --- gtk/gtkcssprovider.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index aba63afcff..d7e8259a74 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -3647,6 +3647,15 @@ gtk_css_provider_get_default (void) " background-color: @base_color;\n" " color: @text_color;\n" "}\n" + ".view:selected {\n" + " background-color: shade (@bg_color, 0.9);\n" + " color: @fg_color;\n" + "}\n" + "\n" + ".view:selected:focused {\n" + " background-color: @selected_bg_color;\n" + " color: @selected_fg_color;\n" + "}\n" "\n" "GtkTreeView > row {\n" " background-color: @base_color;\n"