From b2d37a0523507cb3fc0b3d3e95048a91eb54b6ba Mon Sep 17 00:00:00 2001 From: Elias Aebi Date: Wed, 21 Oct 2015 11:54:52 +0200 Subject: toolbar: use the theme color for the operations icon https://bugzilla.gnome.org/show_bug.cgi?id=756803 --- src/nautilus-toolbar.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c index 3a9039513..2f02e74fa 100644 --- a/src/nautilus-toolbar.c +++ b/src/nautilus-toolbar.c @@ -663,8 +663,14 @@ on_operations_icon_draw (GtkWidget *widget, guint width; guint height; gboolean all_cancelled; - GdkRGBA background = {.red = 0, .green = 0, .blue = 0, .alpha = 0.2 }; - GdkRGBA foreground = {.red = 0, .green = 0, .blue = 0, .alpha = 0.7 }; + GdkRGBA background; + GdkRGBA foreground; + GtkStyleContext *style_context; + + style_context = gtk_widget_get_style_context (widget); + gtk_style_context_get_color (style_context, gtk_widget_get_state_flags (widget), &foreground); + background = foreground; + background.alpha *= 0.3; all_cancelled = TRUE; progress_infos = get_filtered_progress_infos (self); -- cgit v1.2.1