diff --git a/cli/src/zshell/subcommands/scheme.py b/cli/src/zshell/subcommands/scheme.py index 9175271..44ef9af 100644 --- a/cli/src/zshell/subcommands/scheme.py +++ b/cli/src/zshell/subcommands/scheme.py @@ -67,6 +67,11 @@ def generate( TEMPLATE_DIR = Path(HOME + "/.config/zshell/templates") WALL_PATH = Path() + CONFIG = Path(HOME + "/.config/zshell/config.json") + + if not mode: + with CONFIG.open() as f: + mode = json.load(f)["general"]["color"]["mode"] def hex_to_hct(hex_color: str) -> Hct: s = hex_color.strip()