mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
tweak colors for foreground
This commit is contained in:
@ -216,6 +216,7 @@ sysprof_depth_visualizer_row_draw (GtkWidget *widget,
|
|||||||
cairo_t *cr)
|
cairo_t *cr)
|
||||||
{
|
{
|
||||||
SysprofDepthVisualizerRow *self = (SysprofDepthVisualizerRow *)widget;
|
SysprofDepthVisualizerRow *self = (SysprofDepthVisualizerRow *)widget;
|
||||||
|
GtkStyleContext *style_context;
|
||||||
GtkAllocation alloc;
|
GtkAllocation alloc;
|
||||||
const Point *points;
|
const Point *points;
|
||||||
guint n_points = 0;
|
guint n_points = 0;
|
||||||
@ -230,7 +231,10 @@ sysprof_depth_visualizer_row_draw (GtkWidget *widget,
|
|||||||
if (self->points == NULL)
|
if (self->points == NULL)
|
||||||
return GDK_EVENT_PROPAGATE;
|
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");
|
gdk_rgba_parse (&system, "#ef2929");
|
||||||
|
|
||||||
gtk_widget_get_allocation (widget, &alloc);
|
gtk_widget_get_allocation (widget, &alloc);
|
||||||
|
|||||||
Reference in New Issue
Block a user