From daf8435a950a49bd54f6272ab33346c6797caad9 Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Wed, 10 Mar 2021 16:32:19 +0100 Subject: [PATCH] Improve progressbar look Otherwise the selected-bg-color of the theme will be used for the border of the progressbar, making it sorta awkward-looking. --- panel-plugin/netload.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c index 167bcc0..1659421 100644 --- a/panel-plugin/netload.c +++ b/panel-plugin/netload.c @@ -538,11 +538,11 @@ static void set_progressbar_csscolor(GtkWidget* pbar, GdkRGBA* color) { gchar * css; #if GTK_CHECK_VERSION (3, 20, 0) - css = g_strdup_printf("progressbar progress { background-color: %s; background-image: none; }", + css = g_strdup_printf("progressbar progress { background-color: %s; border-color: %s; background-image: none; }", #else - css = g_strdup_printf(".progressbar progress { background-color: %s; background-image: none; }", + css = g_strdup_printf(".progressbar progress { background-color: %s; border-color: %s; background-image: none; }", #endif - gdk_rgba_to_string(color)); + gdk_rgba_to_string(color), gdk_rgba_to_string(color)); DBG("setting pbar css to %s", css); gtk_css_provider_load_from_data (g_object_get_data(G_OBJECT(pbar),"css_provider"), css, strlen(css), NULL); g_free(css);