Last active
July 20, 2020 23:42
-
-
Save robertsanseries/0a7a65e296c5f969018dc88680c92b15 to your computer and use it in GitHub Desktop.
Changing the bar colour of a Gtk.ProgressBar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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