This commit is contained in:
soraefir
2026-06-08 23:26:23 +02:00
parent 8166ef1bd1
commit 0bff91bb07

View File

@@ -125,12 +125,14 @@ let
return None, DEFAULT_PROFILE return None, DEFAULT_PROFILE
def _replace_logo_fill(svg, color): def _replace_logo_fill(svg, color):
return re.sub( svg, count = re.subn(
r"fill:\\s*#3193f5\\b", r"fill:\\s*#3193f5\\b",
f"fill:{color}", f"fill:{color}",
svg, svg,
flags=re.IGNORECASE, flags=re.IGNORECASE,
) )
print(f"favicon-fill replace_count={count} color={color}")
return svg
def _colors(profile): def _colors(profile):
profile = profile or {} profile = profile or {}