[sysprof/wip/chergert/mem-preload] memprof: tweak colors



commit 6f1dd9754dc0315ffed9ed50c889938938af0a6f
Author: Christian Hergert <chergert redhat com>
Date:   Fri Feb 7 11:22:27 2020 -0800

    memprof: tweak colors

 src/libsysprof-ui/sysprof-memprof-visualizer.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-memprof-visualizer.c b/src/libsysprof-ui/sysprof-memprof-visualizer.c
index 8ccca4b..3853824 100644
--- a/src/libsysprof-ui/sysprof-memprof-visualizer.c
+++ b/src/libsysprof-ui/sysprof-memprof-visualizer.c
@@ -27,7 +27,6 @@
 
 #include "rax.h"
 
-#include "sysprof-color-cycle.h"
 #include "sysprof-memprof-visualizer.h"
 
 typedef struct
@@ -287,7 +286,6 @@ draw_finished (GObject      *object,
 static gboolean
 sysprof_memprof_visualizer_begin_draw (SysprofMemprofVisualizer *self)
 {
-  g_autoptr(SysprofColorCycle) cycle = NULL;
   g_autoptr(GTask) task = NULL;
   GtkAllocation alloc;
   DrawContext *draw;
@@ -304,8 +302,6 @@ sysprof_memprof_visualizer_begin_draw (SysprofMemprofVisualizer *self)
       alloc.width == 0 || alloc.height == 0)
     return G_SOURCE_REMOVE;
 
-  cycle = sysprof_color_cycle_new ();
-
   /* Some GPUs (Intel) cannot deal with graphics textures larger than
    * 8000x8000. So here we are going to cheat a bit and just use that as our
    * max, and scale when drawing. The biggest issue here is that long term we
@@ -323,8 +319,9 @@ sysprof_memprof_visualizer_begin_draw (SysprofMemprofVisualizer *self)
   draw->begin_time = self->begin_time;
   draw->duration = self->duration;
   draw->scale = gtk_widget_get_scale_factor (GTK_WIDGET (self));
-  sysprof_color_cycle_next (cycle, &draw->fg);
-  sysprof_color_cycle_next (cycle, &draw->fg2);
+
+  gdk_rgba_parse (&draw->fg, "rgba(246,97,81,1)");
+  gdk_rgba_parse (&draw->fg2, "rgba(245,194,17,1)");
 
   draw->surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
                                               alloc.width * draw->scale,


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