GNOME Bugzilla – Bug 687363
GtkTextView not stylable
Last modified: 2014-12-06 00:39:04 UTC
GtkTextView does not use the normal style-based drawing methods for its frame and background, therefore those elements cannot be drawn by a style engine. Furthermore, GtkTextView appears to completely ignore attempts to change its colors via css; the recommended CSS snippet on this page only changes the cursor color: http://www.gtkforums.com/viewtopic.php?f=3&t=988&p=195276&hilit=Styling%20a%20GtkTextView%20with%20Gtk3%20and%20Css#p195276
This works as expected when I enter it in the css tab in GtkInspector: GtkTextView { color: blue; background-color: red; } GtkTextView:selected { color: red; background-color: blue; }