[gtk: 3/4] node editor: Avoid inheriting textview styles



commit 3eec90cdc03fec88e237f671d4f13bd761ea24f8
Author: nana-4 <hnmaigo gmail com>
Date:   Tue Sep 3 01:44:55 2019 +0900

    node editor: Avoid inheriting textview styles
    
    ...to its descendant selectors
    
    Without ">", "text" style is propagated to entry in the emoji chooser.
    
    https://gitlab.gnome.org/GNOME/gtk/issues/2061

 demos/node-editor/node-editor-application.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/node-editor/node-editor-application.c b/demos/node-editor/node-editor-application.c
index d4d65f964f..fd80787ce2 100644
--- a/demos/node-editor/node-editor-application.c
+++ b/demos/node-editor/node-editor-application.c
@@ -26,9 +26,9 @@
 static const char *css =
 "textview.editor {"
 "  color: rgb(192, 197, 206);"
-"  caret-color: white;"
+"  caret-color: currentColor;"
 "}"
-"textview.editor text {"
+"textview.editor > text {"
 "  background-color: rgb(43, 48, 59);"
 "}"
 ;


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