[sysprof] tweak colors for foreground
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] tweak colors for foreground
- Date: Wed, 29 May 2019 22:43:38 +0000 (UTC)
commit 47dd9ba78c14b9858fc7726503b79e34b73db519
Author: Christian Hergert <chergert redhat com>
Date: Thu May 23 00:16:09 2019 -0700
tweak colors for foreground
src/libsysprof-ui/sysprof-depth-visualizer-row.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-depth-visualizer-row.c
b/src/libsysprof-ui/sysprof-depth-visualizer-row.c
index 19da431..0353e04 100644
--- a/src/libsysprof-ui/sysprof-depth-visualizer-row.c
+++ b/src/libsysprof-ui/sysprof-depth-visualizer-row.c
@@ -216,6 +216,7 @@ sysprof_depth_visualizer_row_draw (GtkWidget *widget,
cairo_t *cr)
{
SysprofDepthVisualizerRow *self = (SysprofDepthVisualizerRow *)widget;
+ GtkStyleContext *style_context;
GtkAllocation alloc;
const Point *points;
guint n_points = 0;
@@ -230,7 +231,10 @@ sysprof_depth_visualizer_row_draw (GtkWidget *widget,
if (self->points == NULL)
return GDK_EVENT_PROPAGATE;
- gdk_rgba_parse (&user, "#2e3436");
+ style_context = gtk_widget_get_style_context (widget);
+ gtk_style_context_get_color (style_context,
+ gtk_style_context_get_state (style_context),
+ &user);
gdk_rgba_parse (&system, "#ef2929");
gtk_widget_get_allocation (widget, &alloc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]