[nautilus/gnome-3-18] toolbar: use the theme color for the operations icon
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-18] toolbar: use the theme color for the operations icon
- Date: Mon, 26 Oct 2015 16:55:38 +0000 (UTC)
commit 4c9d1b2acc49b19f9d9225ea419078f444d763ae
Author: Elias Aebi <user142 hotmail com>
Date: Wed Oct 21 11:54:52 2015 +0200
toolbar: use the theme color for the operations icon
https://bugzilla.gnome.org/show_bug.cgi?id=756803
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 3a90395..2f02e74 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]