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



commit 7de59217b967482ce0010c6c590ee36f4952bfd7
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 035df11db..70089b7e7 100644
--- a/src/libide/themes/themes/shared/shared-editor.css
+++ b/src/libide/themes/themes/shared/shared-editor.css
@@ -135,3 +135,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]