Gtk "thin" progress bar

I'm wondering how to achieve a progressbar / loader similar to the one used by Epiphany (aka Gnome Web). See attached screenshot:

enter image description here


source to share

1 answer

If I'm reading Epiphany's source code correctly, this is just style GtkProgressBar


priv->progress = gtk_progress_bar_new ();
gtk_style_context_add_class (gtk_widget_get_style_context (priv->progress),


The style class is GTK_STYLE_CLASS_OSD

described like this in the documentation :


#define GTK_STYLE_CLASS_OSD "osd"

The CSS class used when rendering the OSD on top of another container.



All Articles