Fix css-provider getting too many arguments

main
axtloss 2 years ago committed by GitHub
parent 3f8be6f61d
commit 1be0f6b13a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,7 +71,7 @@ class FirstSetupApplication(Adw.Application):
CSS inspired by: Sonny Piers <https://github.com/sonnyp>
"""
css = """
css = b"""
.theme-selector {
border-radius: 100px;
margin: 8px;
@ -113,7 +113,7 @@ class FirstSetupApplication(Adw.Application):
}
"""
provider = Gtk.CssProvider()
provider.load_from_data(css, -1)
provider.load_from_data(data=css)
Gtk.StyleContext.add_provider_for_display(
display=Gdk.Display.get_default(),
provider=provider,

Loading…
Cancel
Save