[gnome-builder/gnome-builder-3-32] themes: hide visible cursors for non-focused text editors



commit 29497d0e02aaf0631bf6b1a35b90f0ff00a5ba60
Author: Christian Hergert <chergert redhat com>
Date:   Sun Aug 4 15:23:58 2019 -0700

    themes: hide visible cursors for non-focused text editors
    
    This helps in the multiple-cursor situation to avoid drawing extra visible
    cursors when the window is not in focus. This can happen when we have two
    side-by-side editors and one with multiple cursors.
    
    Related #999

 src/libide/themes/themes/shared/shared-editor.css | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/libide/themes/themes/shared/shared-editor.css 
b/src/libide/themes/themes/shared/shared-editor.css
index e1fdc4432..7332681bf 100644
--- a/src/libide/themes/themes/shared/shared-editor.css
+++ b/src/libide/themes/themes/shared/shared-editor.css
@@ -122,3 +122,11 @@ ideeditorutilities dzltabstrip {
   margin: 5px;
   border-style: none;
 }
+
+/* hide extra textview cursors for non-visible views:
+ * https://gitlab.gnome.org/GNOME/gnome-builder/issues/999
+ */
+textview:not(:focus) text {
+  caret-color: transparent;
+  -gtk-secondary-caret-color: transparent;
+}


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