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.master
parent
5cedef35c5
commit
daf8435a95
|
@ -538,11 +538,11 @@ static void set_progressbar_csscolor(GtkWidget* pbar, GdkRGBA* color)
|
||||||
{
|
{
|
||||||
gchar * css;
|
gchar * css;
|
||||||
#if GTK_CHECK_VERSION (3, 20, 0)
|
#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
|
#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
|
#endif
|
||||||
gdk_rgba_to_string(color));
|
gdk_rgba_to_string(color), gdk_rgba_to_string(color));
|
||||||
DBG("setting pbar css to %s", css);
|
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);
|
gtk_css_provider_load_from_data (g_object_get_data(G_OBJECT(pbar),"css_provider"), css, strlen(css), NULL);
|
||||||
g_free(css);
|
g_free(css);
|
||||||
|
|
Loading…
Reference in New Issue