summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Aebi <user142@hotmail.com>2015-10-21 11:54:52 +0200
committerCarlos Soriano <csoriano@gnome.org>2015-10-26 17:55:10 +0100
commit4c9d1b2acc49b19f9d9225ea419078f444d763ae (patch)
treeae11ce5973d4ca9475f8a730371bec25a35a1e22
parent5b02e3cecf522f9780175557d691eaff09a09e71 (diff)
downloadnautilus-4c9d1b2acc49b19f9d9225ea419078f444d763ae.tar.gz
toolbar: use the theme color for the operations icon
https://bugzilla.gnome.org/show_bug.cgi?id=756803
-rw-r--r--src/nautilus-toolbar.c10
1 files 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);