This commit is contained in:
Zacharias-Brohn
2026-03-07 17:52:46 +01:00
parent c0f4434fd4
commit 1d84248295
+1 -3
View File
@@ -48,8 +48,6 @@ def generate(
raise typer.BadParameter(
"Use either --image-path or --preset, not both.")
cli_mode = mode is not None
def get_scheme_class(scheme_name: str):
match scheme_name:
case "fruit-salad":
@@ -238,7 +236,7 @@ def generate(
with Image.open(image_path) as img:
img.thumbnail((1, 1), Image.LANCZOS)
hct = Hct.from_int(argb_from_rgb(*img.getpixel((0, 0))))
is_dark = "light" if hct.tone > 60 else "dark"
is_dark = "light" if hct.tone > 50 else "dark"
return is_dark