Skip to content

Instantly share code, notes, and snippets.

@robertsanseries
Last active July 20, 2020 23:42
Show Gist options
  • Save robertsanseries/0a7a65e296c5f969018dc88680c92b15 to your computer and use it in GitHub Desktop.
Save robertsanseries/0a7a65e296c5f969018dc88680c92b15 to your computer and use it in GitHub Desktop.
Changing the bar colour of a Gtk.ProgressBar
/*
* Operational System: elementary OS
* Programming Language: Vala
* Version Gtk: 3.0
* ----
* var progress = new Gtk.ProgressBar ();
* progress.get_style_context ().add_class ("GtkProgress");
*/
@define-color progress_bg_color #37C8AB;
.GtkProgress.progressbar {
background-image:
linear-gradient(
to bottom,
shade (
@progress_bg_color,
1.3
),
shade (
@progress_bg_color,
1.08
)
);
border: 1px solid shade (@progress_bg_color, 0.9);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment