node editor: Avoid inheriting textview styles
authornana-4 <hnmaigo@gmail.com>
Mon, 2 Sep 2019 16:44:55 +0000 (01:44 +0900)
committernana-4 <hnmaigo@gmail.com>
Mon, 2 Sep 2019 16:44:55 +0000 (01:44 +0900)
...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

index d4d65f964fb86f0b489903e76c4fb2f9bc9938b7..fd80787ce2d980c0dc467a32d2ea14d048179cc8 100644 (file)
@@ -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);"
 "}"
 ;