From 1be0f6b13a538c7606ac64dcc43d579ccfb4d959 Mon Sep 17 00:00:00 2001 From: axtloss Date: Tue, 28 Feb 2023 23:12:33 +0100 Subject: [PATCH] Fix css-provider getting too many arguments --- vanilla_first_setup/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vanilla_first_setup/main.py b/vanilla_first_setup/main.py index 506ceec..ad1c361 100644 --- a/vanilla_first_setup/main.py +++ b/vanilla_first_setup/main.py @@ -71,7 +71,7 @@ class FirstSetupApplication(Adw.Application): CSS inspired by: Sonny Piers """ - 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,