Merge pull request #146 from axtloss/axtlos/fix-css-provider

Fix css-provider getting too many arguments
main
Mateus B. Melchiades 2 years ago committed by GitHub
commit 3e4e9998e7
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 inspired by: Sonny Piers <https://github.com/sonnyp>
""" """
css = """ css = b"""
.theme-selector { .theme-selector {
border-radius: 100px; border-radius: 100px;
margin: 8px; margin: 8px;
@ -113,7 +113,7 @@ class FirstSetupApplication(Adw.Application):
} }
""" """
provider = Gtk.CssProvider() provider = Gtk.CssProvider()
provider.load_from_data(css, -1) provider.load_from_data(data=css)
Gtk.StyleContext.add_provider_for_display( Gtk.StyleContext.add_provider_for_display(
display=Gdk.Display.get_default(), display=Gdk.Display.get_default(),
provider=provider, provider=provider,

Loading…
Cancel
Save