From d776f762f2553540211e82783c2d0b57a23992af Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Sat, 14 May 2016 16:22:59 +0200 Subject: [PATCH] Use color: inherit to reset label color to its default, thanks knome for the hint! --- panel-plugin/netload.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c index d0ac41c..eb050df 100644 --- a/panel-plugin/netload.c +++ b/panel-plugin/netload.c @@ -525,7 +525,11 @@ static void set_label_csscolor(GtkWidget* label, GdkRGBA* color) } else { - css = g_strdup_printf(".label { color: black; }"); +#if GTK_CHECK_VERSION (3, 20, 0) + css = g_strdup_printf("label { color: inherit; }"); +#else + css = g_strdup_printf(".label { color: inherit; }"); +#endif } css_provider = gtk_css_provider_new (); gtk_css_provider_load_from_data (css_provider, css, strlen(css), NULL);