[gtksourceview] map: remove alpha before generating background color



commit 487a9ddeef552d8c9a7ad00aa271f6c3c492f41b
Author: Christian Hergert <chergert redhat com>
Date:   Thu Oct 14 16:35:03 2021 -0700

    map: remove alpha before generating background color
    
    This is needed since we alpha it later on.

 gtksourceview/gtksourcemap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourcemap.c b/gtksourceview/gtksourcemap.c
index 3a0c82b2..48bea6d8 100644
--- a/gtksourceview/gtksourcemap.c
+++ b/gtksourceview/gtksourcemap.c
@@ -410,7 +410,7 @@ gtk_source_map_rebuild_css (GtkSourceMap *map)
 
                if (_gtk_source_view_get_current_line_background (priv->view, &bg))
                {
-                       bg.alpha = 0.3;
+                       bg.alpha = 1.0;
                        background = gdk_rgba_to_string (&bg);
                }
        }


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