diff --git a/modules/server/containers/apps/favicon.nix b/modules/server/containers/apps/favicon.nix
index 19e434a..25a18c9 100644
--- a/modules/server/containers/apps/favicon.nix
+++ b/modules/server/containers/apps/favicon.nix
@@ -21,6 +21,7 @@ let
+ "|mstile-[0-9]+x[0-9]+\\.png)$";
configFile = pkgs.writeText "favicon-config.json" (builtins.toJSON {
inherit cacheControl;
+ borderRadius = config.colorScheme.palette.border-radius;
mappings = hostMappings;
default = containerCfg.extra.default or null;
});
@@ -104,28 +105,36 @@ let
return "data:image/svg+xml;base64," + base64.b64encode(svg.encode("utf-8")).decode("ascii")
+ def _border_radius():
+ value = APP_CONFIG.get("borderRadius", "8")
+ text = str(value).strip()
+ if text.endswith("px"):
+ return text
+ return f"{text}px"
+
+
def _render_svg(profile):
bg = _color(profile.get("background"), "#111827")
fg = _color(profile.get("foreground"), "#f8fafc")
accent = _color(profile.get("accent"), "#38bdf8")
badge = _badge_text(profile)
+ border_radius = _border_radius()
logo_data_uri = _tinted_logo_data_uri(fg)
canvas = 256
- circle_radius = 120
badge_svg = ""
if badge:
badge_svg = f"""
{badge}
"""
return f""""""