diff options
author | Elias Aebi <user142@hotmail.com> | 2015-10-21 11:54:52 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-10-26 17:50:12 +0100 |
commit | b2d37a0523507cb3fc0b3d3e95048a91eb54b6ba (patch) | |
tree | c9fa78d09ecf01fa66fbe16166c0aa79e05624fb /src/nautilus-toolbar.c | |
parent | 45d05e392fe9f78fff44b5078fe6858ac332ce52 (diff) | |
download | nautilus-b2d37a0523507cb3fc0b3d3e95048a91eb54b6ba.tar.gz |
toolbar: use the theme color for the operations icon
https://bugzilla.gnome.org/show_bug.cgi?id=756803
Diffstat (limited to 'src/nautilus-toolbar.c')
-rw-r--r-- | src/nautilus-toolbar.c | 10 |
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); |