[gtk/editable-label-fixes: 1/2] theme: Fix editable label selection




commit 19fa7d513d1f6dd71a4c87957f3bae4f9531ea87
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 5 12:31:51 2022 -0400

    theme: Fix editable label selection
    
    When the editable label is in editing mode,
    selections should appear the same as in other
    entries.

 gtk/theme/Default/_common.scss | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/gtk/theme/Default/_common.scss b/gtk/theme/Default/_common.scss
index 89aa344683..fc0f75c5aa 100644
--- a/gtk/theme/Default/_common.scss
+++ b/gtk/theme/Default/_common.scss
@@ -468,6 +468,15 @@ treeview entry {
  *******************/
 editablelabel > stack > text {
   @include entry(normal);
+
+ > selection {
+    background-color: $backdrop_selected_bg_color;
+    color: transparent;
+    &:focus-within {
+      background-color: $selected_text_bg_color;
+      color: $fg_color;
+    }
+  }
 }
 
 /***********


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