Skip to content

Commit

Permalink
Classes can't start with a number
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Aug 29, 2024
1 parent e50ac48 commit 681d952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widgets/Banner.vala
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class AppCenter.Widgets.Banner : Gtk.Button {
providers = new Gee.HashMap<string, Gtk.CssProvider> ();
}

var color_class = color.replace ("#", "");
var color_class = color.replace ("#", "color-");
widget.add_css_class (color_class);

if (!providers.has_key (color)) {
Expand Down

0 comments on commit 681d952

Please sign in to comment.