Format code with black and autopep8

This commit fixes the style issues introduced in 127e366 according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/2b9a1207-310c-475e-9493-02a8a3f21491/
This commit is contained in:
deepsource-autofix[bot] 2022-09-13 19:26:19 +00:00 committed by GitHub
parent 127e3661f7
commit fc185fd7e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,28 +130,26 @@ class GradienceApplication(Adw.Application):
try:
variables, palette, custom_css = load_preset_from_css(
os.path.join(
os.environ.get("XDG_CONFIG_HOME",
os.environ["HOME"] + "/.config"),
"gtk-4.0",
"gtk.css"
)
os.environ.get("XDG_CONFIG_HOME",
os.environ["HOME"] + "/.config"),
"gtk-4.0",
"gtk.css",
)
)
preset = {
"name": "User",
"variables": variables,
"palette": palette,
"custom_css": {
"gtk4": custom_css
}
"custom_css": {"gtk4": custom_css},
}
self.load_preset_variables(preset)
except OSError: # fallback to adwaita
except OSError: # fallback to adwaita
if self.style_manager.get_dark():
self.load_preset_from_resource(
f"{rootdir}/presets/adwaita-dark.json")
else:
self.load_preset_from_resource(f"{rootdir}/presets/adwaita.json")
self.load_preset_from_resource(
f"{rootdir}/presets/adwaita.json")
def open_preset_directory(self, *_args):
parent = XdpGtk4.parent_new_gtk(self.props.active_window)