Settings window #20

Merged
Zacharias-Brohn merged 83 commits from settingsWindow into main 2026-03-06 23:27:24 +01:00
Showing only changes of commit 62b250303a - Show all commits
+2 -2
View File
@@ -28,7 +28,7 @@ def generate(
preset: Optional[str] = typer.Option(
None, help="Name of a premade scheme in this format: <preset_name>:<preset_flavor>"),
mode: Optional[str] = typer.Option(
"dark", help="Mode of the preset scheme (dark or light)."),
None, help="Mode of the preset scheme (dark or light)."),
):
if preset is not None and image_path is not None:
@@ -69,7 +69,7 @@ def generate(
WALL_PATH = Path()
CONFIG = Path(HOME + "/.config/zshell/config.json")
if not mode:
if mode is None:
with CONFIG.open() as f:
mode = json.load(f)["general"]["color"]["mode"]