[gtk+] CSS styles for the selection in a TextView.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] CSS styles for the selection in a TextView.
- Date: Mon, 10 Jan 2011 17:53:19 +0000 (UTC)
commit c5a8584c3e33cc9b45d1b3b9baa54f0da5fa4d17
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Jan 9 23:10:47 2011 +0100
CSS styles for the selection in a TextView.
https://bugzilla.gnome.org/show_bug.cgi?id=639106
gtk/gtkcssprovider.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index aba63af..d7e8259 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]