mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-04 16:57:52 +00:00
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:
parent
127e3661f7
commit
fc185fd7e0
1 changed files with 9 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue